Java.Net.ServerSocket.LocalPort Property
Gets the local port of this server socket or -1 if the socket is not bound.

Syntax

[get: Android.Runtime.Register("getLocalPort", "()I", "GetGetLocalPortHandler")]
public virtual int LocalPort { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Gets the local port of this server socket or -1 if the socket is not bound. If the socket has ever been bound this method will return the local port it was bound to, even after it has been closed.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1