Socket.Port Socket.Port Property


Returns the port number of the target host this socket is connected to, or 0 if this socket is not yet connected.

[get: Android.Runtime.Register("getPort", "()I", "GetGetPortHandler")]
public virtual int Port { get; }
member this.Port : int

Property Value


Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to