query a port

Dan M dan at wolf.com
Sun Oct 30 07:25:51 EST 2005


On Sat, 29 Oct 2005 23:21:16 -0700, eight02645999 wrote:

> thanks alot!
> that's all there is to it..so it's just a simple connect.

If all you want to do is check that the given port is open on the given
host, that's it. I tried it on my local box. When connecting to port 25,
it made the connection fine. Trying to connect to port 26 raised a
socket.error.




More information about the Python-list mailing list