getConnectionAddress

@Nullable
abstract fun getConnectionAddress(): @Nullable InetSocketAddress

Gets the public address used by the connection to connect to the server.

Return

The connection address of the connection as an InetSocketAddress.