getPort

abstract suspend fun getPort(): Int

Gets the remote port number.

Return

The remote port number, or -1 if not connected.