Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools HTTP Basics Introduction to HTTP HTTP Requests Using Telnet

Jason Kalonji
PLUS
Jason Kalonji
Courses Plus Student 11,043 Points

Invalid command in telnet

can anyone explain what I'm doing wrong? I enabled telnet and when I try to run" telnet "httpbin.org 80" it returns invalid command.

1 Answer

dublinruncommutr
dublinruncommutr
5,944 Points

Nice one Amulya - just a TLDR for others, if you are using latest (and or beta) versions of High Sierra on Mac, telnet is no longer included by default. Provided you have homebrew installed on your Mac (https://brew.sh/), it's a simple call to:

MacBookAir:~ username$ brew install telnet

After telnet has installed you will be able to run the example from the commandline:

MacBookAir:~ user$ telnet httpbin.org 80
Trying 50.16.223.157...
Connected to httpbin.org.
Escape character is '^]'.