telnetlib/socket NT to unix

Peter Hansen peter at engcorp.com
Fri May 17 19:13:43 EDT 2002


Christophe Delarue wrote:
> 
> I am trying to use the telnetlib to connect onto a sun machine :
> import telnetlib
> t = telnetlib.Telnet()
> t.open("134.64.118.175",23)
> -> time out occurs ! at the self.sock.connect((host,port))
> 
> I tried it through a normal telnet :
> 
> If I send a Start->run->telnet, ask a connection to the same host, the
> connection is ok.

That host does not respond to my attempts with telnet.  Are you sure
it's accessible?  I don't use the telnetlib, but I can't think of
any reason why regular telnet would work but that above would not.

-Peter



More information about the Python-list mailing list