RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientSocket.Address Property

Specifies the IP address of the server system.

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

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

123.197.1.2

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.
 

 

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