Send ping from Arduino

hi everyone, i need to send a ping from my Arduino
to my PC, and then ping two Arduino in the same LAN
and then ping two Arduino in different LAN

what're the libraries that i should use
thx.

The main issue is what kind of shield you are using and whether it supports ICMP.
Most only support TCP and UDP.