I CAN connect socket to any localhost port but I shouldn't be able to
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Jul 29 22:48:47 EDT 2008
En Tue, 29 Jul 2008 14:56:08 -0300, qvx <qvx3000 at gmail.com> escribi�:
> I don't have server listening on port 8084 but I can open socket to it
> (and to many other ports, tested for all<8000)
Your example fails -as expected- on my PC running Python 2.5.2 + Windows
XP SP2. It may be something specific to your setup or your platform.
py> test(8084)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 5, in test
File "<string>", line 1, in connect
socket.error: (10061, 'Connection refused')
--
Gabriel Genellina
More information about the Python-list
mailing list