com.onlineobject.objectnet Namespace

NatDevice..::..GetExternalIPAsync Method

Gets the external (visible) IP address asynchronous. This is the NAT device IP address

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public Task<IPAddress> GetExternalIPAsync()

Return Value

The public IP addrees

Exceptions


ExceptionCondition
com.onlineobject.objectnet..::..MappingExceptionMappingException

Examples


Console.WriteLine("My public IP is: {0}", await device.GetExternalIPAsync());