SocketTools .NET Edition

WebLocation.IPAddress Property

Gets the external IP address for the local system.

[Visual Basic]
Public ReadOnly Property IPAddress As String
[C#]
public string IPAddress {get;}

Property Value

a string which specifies the external IP address for the local system.

Remarks

This property returns a string which specifies the external IP address for the local system. If the system has been assigned multiple IP addresses, it reflects the address of the interface that was used to establish a connection with the SocketTools server. If the connection is made through a Virtual Private Network (VPN) it will use that assigned IP address. If a connection is made through a proxy server, the IP address may be address of the proxy rather than the local host, depending on how the connection is made.

This property cannot be assigned a value to query the location of different IP addresses. If the external IP address of the local system cannot be determined, this property will return an empty string.

See Also

WebLocation Class | SocketTools Namespace | ASNumber Property | LocationId Property | Organization Property