Socket bug (maybe)
Doug Stanfield
DOUGS at oceanic.com
Tue May 23 21:39:06 EDT 2000
localhost == 127.0.0.1
not the address of any interface.
Did you try that address?
-Doug-
> -----Original Message-----
> From: Ryan Dhuse [mailto:dhuserya at msu.edu]
> Sent: Tuesday, May 23, 2000 3:08 PM
> To: python-list at python.org
> Subject: Socket bug (maybe)
>
>
> It really depends on your point of view rather or not you
> consider this a
> bug. When a socket is bound to '', it will accept
> connections from any ip
> address. When a socket is bound to 'localhost' , it will not accept
> connections from any machine other than the local host. it
> will only accept
> connections to 'localhost' on the local machine. If you are
> on the local
> machine and try to connect by the ip address, it will fail.
>
> I realize the socket documentation says that '' represents
> localhost, but I
> would prefer if '' was equivalent to 'localhost' in all respects.
>
> Should this be reported as a bug??
>
> - Ryan Dhuse
>
>
>
> --
> http://www.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list