Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(tye)Re: Net::Ping troubles

by tye (Sage)
on Nov 21, 2000 at 04:38 UTC ( [id://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 Ping.pm so that it reports this or use the Perl debugger to step into Ping.pm 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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://42638]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-18 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found