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!

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

mahmoud elguindi
mahmoud elguindi
2,364 Points

keep getting Connection closed by foreign host. when i use workspace. Also unable to installed telnet on mac. Any workar

keep getting Connection closed by foreign host. when i use workspace. Also unable to installed telnet on mac. Any workarounds?

1 Answer

Be sure that your homebrew is updated if not just run the following in the MAC terminal: brew upgrade

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

Use Homebrew to install telnet: brew install telnet

Run telnet: telnet device-ip-address

remember that once you type in the teachers instructions to quickly type:

telnet httpbin.org 80

then to quickly type GET / HTTP/1.1 which GET means fetching the / root HTTP/1.1 means the version

then quickly type Host: httpbin.org