tuweni / org.apache.tuweni.net.coroutines / CoroutineNetworkChannel / getAdvertisableAddress

getAdvertisableAddress

open fun getAdvertisableAddress(): InetAddress? (source)

Returns the InetAddress corresponding to the interface this channel's socket is bound to.

Exceptions

IllegalStateException - If the channel is not bound to an inet address

ClosedChannelException - If the channel is closed.

IOException - If an I/O error occurs.

Return
The InetAddress that the socket is bound to, or null if the channel's socket is not bound.