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

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

Porting python to C++

2008-07-25 Thread David York
Hello, I'm a longtime lurker of python-list, python-C++ and a couple of others. I have a commercial project being prototyped in Python, brought to a very fine level of completion and which needs to be ported to C++. I would like to outsource this project - does anybody have any experience with