There is a better utility available for folks. Ncat - part of famous the Nmap (5) project. It has more features than netcat that people might find useful - like SCTP, SOCKS, etc..
You can find out more about it: http://nmap.org/ncat/
You can find out more about it: http://nmap.org/ncat/
Edit: somehow my phone managed to post this comment three times. I've deleted the others
Depending on the nc app you have installed on your machine, params will have to be passed using different flags or in differing orders (someone should post why there are different kinds of netcat, I forget). Ncat accepts either format, and sends you cards on your birthday.
Also, fping is an excellent ping sweeper if that's all you need (and it's now being updated again).