Re: Get the external IP address from a Linux box
> On the assumption that you are using a router of some kind, your public
> IP address will be that of the router WAN port (cable, ADSL, etc.) and
> there will be a method of determining that by connecting to the router
> as an administrator. That method will depend entirely on the router.
If the router supports upnp and it is activated, you can check the
external IP in an device-independent way with
upnpc -l | grep ExternalIPAddress