Use ping instead of netcat.