in reply to Net::Ping just don't werk

A couple of things:
  1. Read docs carefully.
  2. icmp MAY need suid 0 , udp and tcp don't.
  3. tcp just connects no data is transfered or echo'ed, so if you just want test if target host is alive use tcp.
  4. Your example is little vague on target address. Make sure your target is a host, not a domain. Not all domains, (ie foo.com) have corresponding hosts (ie yahoo.com DOES, kingkong.com DOES NOT).
  5. Net::Ping will accept fully qualified host nmaes and IP numbers they do not require packing
  6. Suggest using IP numbers first until you have it working. Try good old ping('127.0.0.1')

mitd-Made in the Dark
'My favourite colour appears to be grey.'

Replies are listed 'Best First'.
RE: Re: Net::Ping just don't werk
by mitd (Curate) on Nov 03, 2000 at 02:39 UTC
    Update Great answer brother ab which leads me to a clarification of my point 3. tcp just connects...

    Yes tcp does just connect and does not transfer data but connect is through tcp echo service port so, as brother ab points out, if tcp echo service is turned off in inetd.conf we is poop out of luck.

    Again, thanks brother ab for clearing some past mysteries for me as well. Your answer got a ++ vote from moi ! :)

    mitd-Made in the Dark
    'My favourite colour appears to be grey.'