Java.Net.Socket.LocalPort Property
Returns the local port this socket is bound to, or -1 if the socket is unbound.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Returns the local port this socket is bound to, or -1 if the socket is unbound. If the socket has been closed this method will still return the local port the socket was bound to.

[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