getHost

open fun getHost(publicAddress: Boolean): String

Method to get host where the server is running

Return

host as String

Parameters

publicAddress

: whether to get the public address or just the local address