Installing Telnet Client on macOS

2021-11-01 By Kelvin 140725 Views mac telnet networking
5 reviews

Telnet is a command protocol that allows a user to connect to a remote host. It makes use of TCP/IP protocol to establish a connection with the remote computer.

This command is a valuable tool that allows for troubleshooting and testing of various services in a server. One of the main uses of the telnet command is to check if a particular port is listening on a server. The general format of the telnet command is as below:

telnet [hostname/ipaddress] [port number]

The below example command tests if port 22 is listening for the server's IP address 123.123.123.123.

telnet 123.123.123.123 22


telnet18


By default, the Telnet client is not installed on macOS. This guide outlines the general steps to install telnet commands in your Mac machine.


  1. Open Terminal and start to install Homebrew on macOS.

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    telnetmac1

  2. Input your administrator password and authorize the installation.

  3. Once Homebrew is installed, can start to install the telnet client with the following command.

    brew install telnet
    

    telnetmac2

  4. When installation has complete, you can run Telnet as usual:

    telnet [hostname/ipaddress] [port number]
    


Related Tutorials

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.