RemoteHost

The RemoteHost property returns or sets the remote host. This can be both read from and written to and is available both in design time and runtime. The value returned is a string and can be specified either as an IP address or as a DNS name.

Syntax:   sValue = oSocket.RemoteHost

Alternate:  oSocket.RemoteHost = Value

sValue        (String) the name of the host system the client will be connecting to.

Group:  Socket Object

Example:

Dim WithEvents oSocket As Socket ' module level Dim

Dim sName As String

Set oSocket = New Socket

sName = oSocket.RemoteHost