Why does ping work without administrator privileges?

Although ICMP uses RAW sockets (which require admin rights on Win2K and later), Microsoft circumvents its own security rules to allow its ICMP APIs to get through. As such, don’t use RAW sockets directly to send your own ICMP ping messages. Use IcmpSendEcho() and related functions instead.

Leave a Comment