SocketTools .NET Edition

DnsClient.RemotePort Property

Set or return the port number used to establish a connection.

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

Property Value

An integer value which specifies the remote port number.

Remarks

The RemotePort property is used to set the port number that the control will use to establish a connection with the remote server. If the port number specifies a well-known port, the RemoteService property will be updated with that name.

The valid range for port numbers is 1 through 65535, inclusive. Specifying a port number outside of this range can cause an exception to be thrown. In most cases, it is recommended that you specify the default port number for the protocol.

See Also

DnsClient Class | SocketTools Namespace | RemoteService Property