Use javascript ping a host , it is not a real ping , but can check the network and the host connection status.