SocketTools .NET Edition

InternetServer.ClientPort Property

Gets a value that specifies the port number used by the current client session.

[Visual Basic]
Public ReadOnly Property ClientPort As Integer
[C#]
public int ClientPort {get;}

Property Value

An integer value which specifies the peer port number.

Remarks

The ClientPort property returns the port number that the current client has used when establishing a connection with the server. This property value is only meaningful when accessed within an event handler such as the OnConnect event.

See Also

InternetServer Class | SocketTools Namespace