Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Use hping2 | 15 comments | Create New Account
Click here to return to the 'Use hping2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use hping2
Authored by: macubergeek on Mar 01, '06 03:29:28PM

sudo hping2 www.apple.com -c 1 -p 80

hping is a swiss army knife of a program. You can also use it to craft packets and to test firewalls. The above will also check to see if port 80 is reachable on host www.apple.com (for example).
You can use -c somebiggernumber to test latency as well. A little shell script wrapped around this can parse, slice and dice the output any way you want.



[ Reply to This | # ]
Use hping2
Authored by: gaoshan on Mar 05, '06 11:15:56PM

hping2 isn't on my machine (10.4.5). Do you have the server version of OS X? Regardless, it's available at Sourceforge and DarwinPorts even has hping3 available.



[ Reply to This | # ]