Finding IP address of localhost via socket API (or other API)
davideyork at gmail.com
Wed Aug 6 04:01:11 CEST 2008
I'm going to look into the Internet Gateway Device protocol and see what it
has to offer. If it is more work than it is work I'm going with Steven's
suggestion (nice code BTW).
And yes, you guys understood what I was asking - I wanted the internet IP
address of my machine, not the local subnet fake IP my router gave me.
Thanks so much for your help guys, you got it.
On Tue, Aug 5, 2008 at 5:50 PM, John Machin <sjmachin at lexicon.net> wrote:
> 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
> > > 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/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list