Ned Deily wrote:
> In article <496f0fac.30...@cemery.org.uk>,
> Ranec wrote:
>
> [snip]
Thanks for all the help.
It's clear the port was the issue.
TIA
-R
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listi
In article <496f0fac.30...@cemery.org.uk>,
Ranec wrote:
> The following code works just fine under Windows XP and Vista but not on
> MacOS X (currently no idea what version, though Python is 2.5.?). Any
> thoughts?
>
> def get_my_ip_address():
> ret=None
> try:
> s=socket.socket(
Sorry, my mistake. I didn't see you were using UDP...
Bill Janssen wrote:
> does anything listen on port 0?
Bill
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
Ranec wrote:
> s.connect(('google.com', 0))
What does this even mean? "google.com" is a domain, not a server
(though it does forward to "www.google.com"). And port 0? Does
anything listen on port 0? Sounds like OS X is the only platform that
gets this right :-). Try this:
s.conne
temporary answer
http://www.artima.com/forums/flat.jsp?forum=181&thread=113874
On Thu, Jan 15, 2009 at 4:27 AM, Ranec wrote:
> Dear All,
>
> I'm writing a Python FOSS application and am *very* keen to keep it
> platform agnostic.
>
> I don't own a Mac, but have access to some sympathetic Mac o
Dear All,
I'm writing a Python FOSS application and am *very* keen to keep it
platform agnostic.
I don't own a Mac, but have access to some sympathetic Mac owners. :-)
The following code works just fine under Windows XP and Vista but not on
MacOS X (currently no idea what version, though Python