System.Win.ScktComp.TCustomWinSocket.LocalHost

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property LocalHost: string read GetLocalHost;

C++

__property System::UnicodeString LocalHost = {read=GetLocalHost};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomWinSocket

Description

Specifies the name of the local system.

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.example.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.

See Also