Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Net::Ping the mini series (UDP Pings)

by Anonymous Monk
on Mar 02, 2001 at 18:07 UTC ( #61795=note: print w/ replies, xml ) Need Help??


in reply to Re: Net::Ping the mini series (UDP Pings)
in thread Net::Ping, the mini series

it doesn't work for me :( or precisely it's works always: if udp port is up or down ! i need to test for my web servers some ports, I have only problems to test the UDP ones... How can i do that ? Thanks for support sachab@usa.net


Comment on Re: Re: Net::Ping the mini series (UDP Pings)
Re^3: Net::Ping the mini series (UDP Pings)
by saurabh.hirani (Beadle) on May 04, 2009 at 15:12 UTC
    I know this is an old post, but I think I might know why your program in saying 'yes' all the time.

    The reason it might be always reporting that the server is up might be that if it is a linux box, iptables might have icmp host unreachable turned off. If that's the case then when your send call is done, it returns without error and in the gap between the nth and the (n+1)th send call, the OS reports an ICMP host unreachable, but due to the iptables rule, it gets dropped at the point of entry, never making it to the program. So your subsequent sends do not see any errors reported by the previous ones and it looks as if all is well.

      Even for me it does not work on windows as well. But it works for TCP. Can anyone know how to make it work with UDP? Thanks in advance, kuntalm@hotmail.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-08-21 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls