Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

(tye)Re: Net::Ping troubles

by tye (Sage)
on Nov 21, 2000 at 04:38 UTC ( #42638=note: print w/replies, xml ) Need Help??

in reply to Net::Ping troubles

Doing TCP or UDP pings is often useless since most machines (at least these days) don't service the TCP/UDP echo services. This type of "ping" is like trying to telnet to port 7 of a machine. Most of the time this will just get you "connection refused" because nothing listens to that port on so many machines. But since UDP is not connection oriented, you can't get "connection refused" so the ping just fails.

So you want to do Net::Ping->new("icmp"), which works for me. You need to get at 0+$! in order to understand what "unknown error" really is so we can figure out what is going wrong. Either modify so that it reports this or use the Perl debugger to step into and query what that value is. Perhaps you have to be "administrator" in order to use ICMP under WinNT?

        - tye (but my friends call me "Tye")

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://42638]
and the fire pops...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2018-04-27 05:49 GMT
Find Nodes?
    Voting Booth?