Java.Net.Socket.LocalSocketAddress Property
Returns the local address and port of this socket as a SocketAddress or null if the socket has never been bound.

Syntax

[get: Android.Runtime.Register("getLocalSocketAddress", "()Ljava/net/SocketAddress;", "GetGetLocalSocketAddressHandler")]
public virtual SocketAddress LocalSocketAddress { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Returns the local address and port of this socket as a SocketAddress or null if the socket has never been bound. If the socket is closed but has previously been bound then an address for which InetAddress.IsAnyLocalAddress returns true will be returned with the previously-bound port. This is useful on multihomed hosts.

[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