Finding IP address of localhost via socket API (or other API)

John Machin sjmachin at lexicon.net
Wed Aug 6 02:50:58 CEST 2008


On Aug 6, 9:51 am, Emile van Sebille <em... at fenx.com> wrote:
> 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.  Onlyhttp://www.meineip.de/shows the external IP.
>

All four of Steven's list showed my *external* address using Firefox,
as did http://www.meineip.de/





More information about the Python-list mailing list