System.Net.Socket.TSocket.RemoteAddress
Delphi
property RemoteAddress: string read GetRemoteAddress;
C++
__property System::UnicodeString RemoteAddress = {read=GetRemoteAddress};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Remote IP address.
If your socket is closed, RemoteAddress is an empty string.
Exceptions
Reading the value of RemoteAddress can raise any of the following exceptions:
| Exception | Exception.Message | Scenarios |
|---|---|---|
|
Network socket error: <error message> (<error code>), on API 'getpeername' |
|