RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSocketConnection.Address Property

Specifies the IP address of the server.

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

Use Address to specify the IP address of the application server to which the client application connects. In addition to the address, you must provide a value for the Port property so that the socket connection component can locate the listening socket on the server system. 

Sockets require either an IP address or a Host name to locate the server system. You can use the Host property instead of the Address property to specify the server system using a host name. The Address and Host properties are mutually exclusive: Setting Address causes Host to be set to an empty string, and vice versa.

Note: If the socket connection component uses an Object Broker, you do not need to specify the Address property. Instead, the Object Broker supplies an Address for a server that is located dynamically at runtime. Explicitly setting the Address property overrides the value supplied by the Object Broker, but such overridden values are not saved with the socket connection component.
 

 

Host 

Port 

ObjectBroker 

Specifying a Connection Using Sockets

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!