$upnp.getExternalIpAddress

$upnp.getExternalIpAddress Return the external IP address using UPnP
Usage
<string> $upnp.getExternalIpAddress()
Description
During the loading of the UPnP module (and during a upnp.refresh), KVIrc searches the gateway of your local network. If a gateway is found, KVIrc requests it the external IP address associated to the router and caches it. Using this function you can get this cached value. Take care that if no gateway have been found or it returned no external IP address (this can happens if its upstream (WAN) link is not connected), this function returns an empty string. It's better to check is a gateway has been found using $upnp.isgatewayavailable before using this function.
See also
$upnp.isgatewayavailable

Index, Functions