You just can't - 'ping' is ICMP and ports are a TCP thing.
If you want to make sure a port is open the correct thing to do is telnet to the port.
Technical bits aside ... 'you can't ping a port' is fun to say and brightens my day.

" the action is at the user interface level. "