RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.LocalHost Property

Specifies the name of the local system.

Pascal
property LocalHost: string;
C++
__property AnsiString LocalHost;

Use LocalHost to get the name of the system that is running the application that uses the Windows socket. LocalHost is a string containing the domain name and service of the local socket endpoint, such as

http://www.wSite.Com

LocalHost provides an alias for the local IP address given in the LocalAddress property. Most Intranets provide host names for the IP addresses of systems on the net. On Windows 95 and NT machines, if a host name is not available, create one for the local IP address by entering the name into the HOSTS file. See the Microsoft documentation on Windows sockets for more information on the HOSTS file. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!