Function

Purpleupnp_get_public_ip

Declaration [src]

const gchar*
purple_upnp_get_public_ip (
  void
)

Description [src]

Gets the IP address from a UPnP enabled IGD that sits on the local network, so when getting the network IP, instead of returning the local network IP, the public IP is retrieved. This is a cached value from the time of the UPnP discovery.

Return value

Returns: const gchar*
 

The IP address of the network, or NULL if something went wrong.

 The data is owned by the called function.
 The value is a NUL terminated UTF-8 string.