ServerName Property  
 

Gets and sets the fully qualified domain name for the server.

Syntax

object.ServerName [ = hostname ]

Remarks

The ServerName property returns the fully qualified domain name assigned to the server. This consists of the local computer name and its domain name. The actual value returned depends on the system configuration. If no domain has been specified for the system, then only the machine name will be returned.

Setting this property assigns the default hostname for the server which is returned to the client in the standard response header block. If the server is publicly accessible over the Internet, this property should be set to the same hostname that is associated with the server IP address.

Attempting to change the value of this property after the server has started will cause an exception to be raised. To change this property value, you must first call the Stop method which will terminate all active client connections.

Data Type

String

See Also

ExternalAddress Property, ServerAddress Property, ServerPort Property, AddHost Method, Start Method