HostName Property  

Gets and sets the name of the remote host.


object.HostName [= hostname ]


The HostName property should be set to the name of the remote system that you wish to communicate with. If the name is found in the host table, the HostAddress property is updated to reflect the IP address of the host.

Note that it is legal to assign an IP address to this property, but it is not legal to assign a host name to the HostAddress property.

Data Type


See Also

AutoResolve Property, HostAddress Property