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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Simon Banyard](https://uploads.teamtreehouse.com/production/profile-photos/43885/micro_simon.jpg)
Simon Banyard
Courses Plus Student 20,115 PointsConnection closed by foreign host...
Hi All,
I'm following along with the tutorial, but I'm not getting any response from the httpbin.org server. I'm connecting just fine, but both my local terminal and the console in workspaces are returning "Connection closed by foreign host.". I can connect to the site through a browser. Any ideas most welcome!
$ telnet httpbin.org 80 Trying 54.175.219.8... Connected to httpbin.org. Escape character is '^]'. GET /xml HTTP/1.1 Host: httpbin.org Connection closed by foreign host.
3 Answers
![Tiger Wang](https://secure.gravatar.com/avatar/23fb27c4ca5a08c55659a054b8fe3264?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Tiger Wang
26,548 PointsHey Simon, I encountered the same problem, and I found after typing
GET / HTTP/1.1
Host: httpbin.org
You should press enter twice, I guess that telnet is waiting for you to give the rest of the request. BTW:Christ has been talking so fast :D .
![Simon Banyard](https://uploads.teamtreehouse.com/production/profile-photos/43885/micro_simon.jpg)
Simon Banyard
Courses Plus Student 20,115 PointsNailed it!
![Ramy Elsaraf](https://secure.gravatar.com/avatar/dddf9dce95d3816cbc295e2ac8308aa5?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ramy Elsaraf
7,633 PointsHow do you type the second line without pressing enter, how do you get down ????
![Jason Anders](https://uploads.teamtreehouse.com/production/profile-photos/3512822/micro_Jason_s-Pic.jpg)
Jason Anders
Treehouse Moderator 145,859 PointsHey Simon,
The "connection closed by foreign host" will come up ~60 seconds after you open the connection if there is no action. This is normal and done by httpbin.org. I found it best to watch what Chris does completely then pause / rewind and follow along (with your new connection). If you don't, sometimes he explains what he is doing for longer than 60 seconds, and then you will lose the connection just as he types the commands.
Hope this helps.
![Simon Banyard](https://uploads.teamtreehouse.com/production/profile-photos/43885/micro_simon.jpg)
Simon Banyard
Courses Plus Student 20,115 PointsThanks Jason. Sadly, I've been doing exactly that! Thanks for the advice. :)
![Paul Seda](https://secure.gravatar.com/avatar/156414b8e63dc7fc82b5532e4239783f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Paul Seda
472 PointsSimon, did you go to a new line by pressing enter after typing HTTP/1.1?
![Kyle Vassella](https://uploads.teamtreehouse.com/production/profile-photos/6103382/micro_Screen_Shot_2016-05-30_at_4.57.04_AM.jpg)
Kyle Vassella
9,033 PointsI never figured out how to go to a new line in the workspace console. edit: Nevermind, it's option + enter on mac (probably alt + enter for windows)
coreycoding
12,481 Pointscoreycoding
12,481 PointsAfter a failed attempt I reset the console(work space) and completed the first action as mentioned, I then pasted the text below into the console and pressed return twice. Yah me! It worked. & Thanks Jason Anders.
GET / HTTP/1.1 Host: httpbin.org