From RAD Studio API Documentation
Jump to: navigation, search


property Address: string read FAddress write SetAddress;


__property System::UnicodeString Address = {read=FAddress, write=SetAddress};


Type Visibility Source Unit Parent
property protected
System.Win.ScktComp TAbstractSocket


Specifies the IP address of the server system.

Address is a string of four numeric (byte) values in the standard Internet dot notation, such as

For client sockets, set Address to the IP address of the server to which the socket should connect. When the connection is opened, the value of Address is bound to the connection.

If the socket specifies the Host property, the address for the connection is taken from the IP address associated with Host, rather than the value of Address. Specifying the server system by giving the IP address is faster, because the socket doesn't need to search for the IP address associated with the host name before it can locate the server system.

A single system may support more than one IP address.

Note: Trying to change Address when the connection is open will raise an ESocketError exception.

See Also