Socket bug (maybe)

Ryan Dhuse dhuserya at msu.edu
Wed May 24 03:07:50 CEST 2000


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






More information about the Python-list mailing list