Finding IP address of localhost via socket API (or other API)
Emile van Sebille
emile at fenx.com
Tue Aug 5 19:51:25 EDT 2008
Steven D'Aprano wrote:
> The only way I know of is to query an external server that will tell you.
> There's a few of them out there. Here's a few:
>
> http://checkip.dyndns.org/
> http://www.showmyip.com
> http://www.showmyip.com/simple/
> http://whatismyip.org/
all four of these show my internal IP of 192.168.x.x in both ie and
firefox. Only http://www.meineip.de/ shows the external IP.
Emile
More information about the Python-list
mailing list