Yes, pinging a phone without the owner's consent is generally illegal due to privacy laws. It's crucial to have explicit permission from the owner to track their device's location.