[Pythonmac-SIG] Subtle difference between PythonMac and command line on OS X

Pieter Claerhout pieter.claerhout@pandora.be
Fri, 5 Apr 2002 20:29:04 +0200


The socket I'm trying to open is actually a SocketServer accepting requests
from other computers, and that's a bit difficult if it's only listening on
127.0.0.1...

--Pieter


-----Original Message-----
From: Tony Lownds [mailto:tony@metanet.com]
Sent: Friday, April 05, 2002 8:19 PM
To: pieter.claerhout@pandora.be; pythonmac-sig@python.org
Subject: Re: [Pythonmac-SIG] Subtle difference between PythonMac and
command line on OS X


>
>I want to have the command line version return '192.168.0.4' as well


On command line:

sudo hostname 192.168.0.4

...but that probably doesn't really do what you want.

I'd guess that he reason for the difference is there are entirely
different subsystems returning the value. PythonMac using GUSI while
MachoPython (command line on OS X) uses standard POSIX calls.

So, this probably isn't a bug, just expected deviations across
platforms (PythonMac and MachoPython are different platforms.)



>  since I'm trying to open a socket on that.

Whats wrong with opening the socket to 'localhost' on the command line
version?

-Tony


--