what port does ping use
What Port Does Ping Use: Understanding ICMP & Firewalls
Ping uses 0 ports. It doesn't use TCP or UDP at all. It uses ICMP at the network layer, where ports don't exist. That sounds like trivia until a production alert starts with “host not responding to ping” and the team assumes the service is down.