getLocalPort

abstract suspend fun getLocalPort(): Int

Gets the local port number.

Return

The local port number, or -1 if not bound.