getRemoteAddress

@NotNull
abstract fun getRemoteAddress(): @NotNull InetSocketAddress

Gets the connection's remote address.

Note: The remote address can be changed by the UDP packet handler once the player's remote address has been changed.

Return

The remote address of the connection as an InetSocketAddress.