Set or return the port number used to establish a connection.
An integer value which specifies the remote port number.
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.
DnsClient Class | SocketTools Namespace | RemoteService Property