Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

telnetlib/socket NT to unix

0 views
Skip to first unread message

Christophe Delarue

unread,
May 17, 2002, 9:29:45 AM5/17/02
to
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.

Is there anybody have a solution to my pb ?

I'am under NT4.0 and python2.1

Peter Hansen

unread,
May 17, 2002, 7:13:43 PM5/17/02
to
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

Tim Roberts

unread,
May 20, 2002, 2:38:22 AM5/20/02
to
cdel...@bigfoot.com (Christophe Delarue) wrote:

There is a bug in the NT 4.0 implementation of gethostbyname that prevents
it from correctly translating a numeric IP address specified as a string.

If the machine has a name, use the name. If not, add a fake name in
\winnt\system32\drivers\etc\hosts:

134.64.118.175 sunxxx1

Then use this:
t.open("sunxxx1",23)

Alternatively, you could upgrade to Windows 2000. It is much better.
--
- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

0 new messages