HostName Property  
 

Gets and sets the name of the server.

Syntax

object.HostName [= hostname ]

Remarks

The HostName property should be set to the name of the server 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

String

See Also

AutoResolve Property, HostAddress Property