I CAN connect socket to any localhost port but I shouldn't be able to

qvx qvx3000 at gmail.com
Wed Jul 30 09:02:53 CEST 2008


On Jul 30, 4:48 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Tue, 29 Jul 2008 14:56:08 -0300, qvx <qvx3... 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

Thanks for confirmation. There is a similar function in CherryPy
server which won't start anymore but it used to. I am currently
examining Windows and any recently installed software.
--
Tvrtko



More information about the Python-list mailing list