Telnet uses the Telnet protocol (part of the TCP/IP protocol suite) to connect to a remote computer over a network. You can execute telnet from the Command (DOS) prompt.
telnet [RemoteServer] [Port]
[RemoteServer]: specify the name of the server to which you want to connect. When you connecting to an email server you need to use the MX record value.
[Port]: enter the port that you want to use.
For Windows users:
- Go to Start > Run (or press Windows button+R).
- In the Run window type cmd and click OK to open the Command prompt.
- Type in telnet [RemoteServer] [Port]. If you are trying to connect to Smarsh Hosted Services mail server, type in your MX record for the [RemoteServer]. Usually, port 25 is used for this type of connection.
To terminate Telnet session use the quit command.
Note: by default, Windows does not have the Telnet client enabled. To install Telnet, follow these steps:
- Click the Start button, type in Control panel and click the Control Panel App.
- In the Control Panel, click Uninstall a Program under Programs section.
- Then click Turn Windows features on or off and after you click Continue on the security prompt, you should see a list of components.
- Scroll down to Telnet Client and check the box next to it. Click Ok to install the client.
For Mac users:
If you have OS X, you can use the built-in network tools.
- Click Go > Utilities.
- In the Utilities folder open Terminal.
- In Terminal, type: telnet [hostname] [port].