Re: TELNET instead PING

From: Gandalf (gandalf_at_geochemsource.com)
Date: 01/26/04


Date: Mon, 26 Jan 2004 21:31:41 +0100
To: "comp.lang.python" <python-list@python.org>

Peter Hansen wrote:

>DCK wrote:
>
>
>>Into group-archive i found most e-mails, which touches PINGing.
>>In my work i've used TELNET for testing if host is operational.
>>Sometimes, for unknown reasons, workstation doesn't respond
>>for PINGing. But in WinNT network, all hosts has a nbsession
>>listening on port 139. I always use this script instead PING
>>command (hope, will be usefull for someone :) ):
>>
>>
>
>Interesting, but why would you use TELNET for that? Telnet is
>simply one of many possible protocols, whereas you need only
>open a socket to the port to see if the host is responding.
>
>
Exactly. All you need is an open port you can check.

Note: that reason you talked about is most likely a packet filtering
firewall. A good firewall
can block PING, Telnet, Nbsession and many others. In most cases, the
best policy
is to lock everything by default and permit only the ones you really
want. Firewall
rules can include source addresses too. It is possible that a computer
do not respond
on PING and TELNET ports for you but it does for a similar request from
another
computer. I think there is no universal way to determine if a remote
host is alive or not.



Relevant Pages

  • Re: Emails stuck in queue error 451 4.4.0 Primary target IP addres
    ... Your Exchange server is unable to connect to host smtp.surfdsl.net using SMTP--that's what the telnet to port 25 tests. ... > Well if you look in my post I posted the command prompt and the> reposnse I ...
    (microsoft.public.exchange.misc)
  • Re: Cannot access a web page
    ... Could not open connection to the host on port 80 connect failed. ... Then you can use telnet to test with. ... > You can also use nslookup to check on your DNS. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Email Delyed
    ... ping pop3.domainname.com, but I was not able to telnet to it. ... said it was unable to connect to the host on port 25. ...
    (microsoft.public.exchange.admin)
  • Re: Port Mapping on a PIX 515
    ... access-list outside_in permit tcp any host 209.215.23.22 eq telnet ... not want to redirect to a different port? ...
    (comp.dcom.sys.cisco)
  • Expect, telnet, frozen console.
    ... telnet into remote host, provide username/password, surrender control to ... This script will eventually be tied into /etc/inittab so that it ... app called 'loe' which presents a login screen in 80x24 ASCII a la ...
    (comp.lang.tcl)