Search The Hostwinds Guides Knowledge Base

Checking a Port through Telnet

Share This Article [TheChamp-Sharing]

If you ever need to check if a service is running and listening on a specific port on a server, and the server is online and allowing the connection, Telnet can be a great first tool to use to identify a possible issue.

Installing Telnet On a Windows PC

  1. Open your computer control panel.
  2. Go to Programs.
  3. Click Programs and Features.
  4. Select the “Turn Windows features on or off ” option.
  5. Check the “Telnet Client” box.
You can also install it from the command line using the command:

pkgmgr /iu:”TelnetClient”

Using Telnet

To use Telnet, open your command prompt and type in the telnet command using the following syntax:

telnet [hostname or ip address] [port number]
For example, you can telnet into an SMTP server using the following command:

telnet 587

If the server is up and running, the port is open in the firewall, and the SMTP server is listening correctly at that port, you will be greeted by some text:

To End A Telnet Connection

  • Escape Character is ‘CTRL+]’ (CTRL + Right Bracket)
  • Type in the word ‘quit’ without single quotes.
  • Hit the ‘Enter’ key on your keyboard

Related Articles