S-056785 How To Use Ping and Telnet To Verify TCP Port Connectivity To Archive Server or SQL Server
S-056785 How To Use Ping and Telnet To Verify TCP Port Connectivity To Archive Server or SQL Server
When troubleshooting connectivity problems to a server, the two most useful commands are Ping and Telnet.
Ping can be used for testing that a server can be reached by hostname and IP address and telnet can be
used to test if the server service is responding on a particular port.
Using Ping
Open a command prompt on the system where you want to connect to a server from and type:
Ping HOSTNAME
If it does not reply it could be because the hostname cannot be resolved by the DNS lookup, try pinging
directly on the server IP address instead. If it replies only on the IP (but not hostname) you can add the
hostname and IP to the local HOSTS file (see KB solution S-037242 for details). If it does not reply at all you
need to investigate what may be blocking traffic between the systems. Contact the network administrator for
assistance.
Using Telnet
Once you confirm that the host can be reached using ping you can use telnet to check if the server port is
open and responding to requests.
Open a command prompt on the system where you want to connect to a server from and type:
Telnet HOSTNAME PORTNAME
Replacing HOSTNAME with the name of the server and PORTNAME with the server port you want to test
(3030 for archive server and 1433 for SQL server).
Page 2 of 2
If the server port is open and the service is responding, telnet should bring up a black screen with a blinking
cursor. You should now be able to communicate with that server.
If the service is not responding or port is not open, telnet will fail with connection error. Make sure the service
is running and port is not being blocked by firewall. Contact the network administrator for assistance.
Note that if you are using Windows Vista, Windows 7 or Windows Server 2008 the telnet command will not
be enabled by default. You may have to add it via the Windows Features option. Refer to the Microsoft
support site for detailed instructions.