Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

(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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://42638]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2023-02-07 10:55 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (38 votes). Check out past polls.