I am not sure what is the difference between a ping and scanning a port but I want to know all the details about a port is opening or closed on my hosting.Do you want to ping or do you want to scan the ports????
Can I check port from my SSH? I don't want to use tools because I rarely remember all the tools on the internet.If is only ping you can not use ping command it is an ICPM and don't have a port concept you can otherwise use nmap or paping.exe you can google them and install on your windows desktop.
If it is scan you can do online at http://mxtoolbox.com/PortScan.aspx insert your IP address and it gives you the open and closed ports
telnet server_ip port_number
$ telnet xx.xx.xx.xx 22
Trying xx.xx.xx.xx...
Connected to server.hostname.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.3
C:\PSTools>psping cpanel.hostfav.com 2087
PsPing v2.01 - PsPing - ping, latency, bandwidth measurement utility
Copyright (C) 2012-2014 Mark Russinovich
Sysinternals - www.sysinternals.com
Pinging 72.52.114.71 with 32 bytes of data:
5 iterations (warmup 1) ping test:
Reply from 72.52.114.71: 78.71ms
Reply from 72.52.114.71: 78.49ms
Reply from 72.52.114.71: 79.60ms
Reply from 72.52.114.71: 77.41ms
Reply from 72.52.114.71: 79.15ms
Ping statistics for 72.52.114.71:
Sent = 4, Received = 4, Lost = 0 (0% loss),
Minimum = 77.41ms, Maximum = 79.60ms, Average = 78.66ms