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

2008-08-05 Thread Timothy Grant
On Tue, Aug 5, 2008 at 4:39 PM, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > Sorry for replying to the replier (Timothy) instead of the OP (David), > but the original post seems to have been eaten by my ISP. > > On Tue, 05 Aug 2008 15:48:26 -0700, Timothy Grant wrote: > >> On Tue, Aug 5, 2008 at 2:

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

2008-08-05 Thread David York
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 fa

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

2008-08-05 Thread John Machin
On Aug 6, 9:51 am, Emile van Sebille <[EMAIL PROTECTED]> 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

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

2008-08-05 Thread Emile van Sebille
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 o

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

2008-08-05 Thread Steven D'Aprano
Sorry for replying to the replier (Timothy) instead of the OP (David), but the original post seems to have been eaten by my ISP. On Tue, 05 Aug 2008 15:48:26 -0700, Timothy Grant wrote: > On Tue, Aug 5, 2008 at 2:50 PM, David York <[EMAIL PROTECTED]> wrote: >> Does anybody know how to find the r

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

2008-08-05 Thread Christian Heimes
David York wrote: How do I find out my machine's IP address as visible to the outside world? Thanks a lot. Most modern routers home routers support the IGD part of UPnP (http://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol). You can use an UPnP client software to query the router for

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

2008-08-05 Thread Diez B. Roggisch
Timothy Grant schrieb: On Tue, Aug 5, 2008 at 2:50 PM, David York <[EMAIL PROTECTED]> wrote: Does anybody know how to find the real IP address (e.g.: address visible to internet) of a machine via Python? In other words I have a machine with an IP address something like 192.168.1.5, an address g

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

2008-08-05 Thread Timothy Grant
On Tue, Aug 5, 2008 at 2:50 PM, David York <[EMAIL PROTECTED]> wrote: > Does anybody know how to find the real IP address (e.g.: address visible to > internet) of a machine via Python? In other words I have a machine with an > IP address something like 192.168.1.5, an address given to me by a rout

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

2008-08-05 Thread David York
Does anybody know how to find the real IP address (e.g.: address visible to internet) of a machine via Python? In other words I have a machine with an IP address something like 192.168.1.5, an address given to me by a router. The router's address (and thus my machine's address) to the outside worl