Method GetClientIP
GetClientIP(String)
Get the client ip address which is visible to the server
Declaration
string GetClientIP(string connectionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
Returns
Type | Description |
---|---|
System.String | Client ip address |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetClientIP
Retrieve a predefined list of trace switches.{
"connectionId": "af45c56c-da84-4f2e-a186-6240c1d6bb9b"
}
Response:
{
"GetClientIPResult": "127.0.0.1"
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |