Porting python to C++
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 Python -> C++ porting that could give advice? Does anybody have any experience with outsourcing such projects? Any experience (or being redirected to a more appropriate forum) would be greatly appreciated. I'm currently thinking about breaking the program down into pieces inside unit tests then taking care of them via rentacoder.com but having no experience I don't know if this idea is good or not. David -- http://mail.python.org/mailman/listinfo/python-list
Finding IP address of localhost via socket API (or other API)
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 world is
something realistic, 123.156.123.156 or whatever. How do I get that
number? I've tried socket.getaddrinfo('localhost', None) but all I get is
127.0.0.1 as expected.
How do I find out my machine's IP address as visible to the outside world?
Thanks a lot.
David
--
http://mail.python.org/mailman/listinfo/python-list
Re: Finding IP address of localhost via socket API (or other API)
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. David On Tue, Aug 5, 2008 at 5:50 PM, John Machin <[EMAIL PROTECTED]> wrote: > 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.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/ > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
