ping doesn’t use a TCP or UDP port at all. Zero. None. Nada.
That’s because ping doesn’t even use TCP or UDP in the first place - it works on a completely different protocol layer: ICMP (Internet Control Message Protocol). You could sit there with Wireshark running and watch packets fly by all day, but you won’t find a dst port=80 or dst port=443 in a real ICMP ping. If you’re used to troubleshooting with tools like telnet or nc that always need a port number, this can feel super weird.