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 trialPiotr Manczak
Front End Web Development Techdegree Graduate 29,365 PointsCan anyone explain what I'm doing wrong? I enabled telnet and when I try to run telnet returns invalid Command.
Can anyone explain what I'm doing wrong? I enabled telnet and when I try to run "telnet httpbin.org 80" telnet returns invalid Command. I am using Windows 10.
4 Answers
Louise St. Germain
19,424 PointsHi Piotr,
I have Windows 10 also and installed telnet, and I didn't get this error. I can sort of replicate the error, however, if I go into command prompt and type telnet
+ enter, which opens telnet and gives a telnet prompt. Then if I type telnet httpbin.org 80
, I get that invalid command error you were talking about. This is because telnet is already open at this point, and "telnet" is not a valid command inside the telnet application.
Do you get the invalid command error when you type telnet httpbin.org 80
straight into the Windows command prompt?
Piotr Manczak
Front End Web Development Techdegree Graduate 29,365 Pointsit says: Welcome to microsoft telnet client. Escape character is "CTRL+ ]" Microsoft Telnet>
and then when I try: Invalid Command. type ?/help for help
What do you think?
Piotr Manczak
Front End Web Development Techdegree Graduate 29,365 PointsI am sorry. I just realized. it's Windows 8.1.
Louise St. Germain
19,424 PointsHi Piotr,
If have a prompt that says Microsoft Telnet>
, you already have telnet open, so the problem is very likely what I mentioned before: telnet
is not a valid command within telnet itself; you only use it to open telnet.
If you already have telnet open, then use open httpbin.org 80
instead of telnet httpbin.org 80
to open the connection to httpbin. Hopefully that will work. Note that it will look like it's hanging because it should say Connecting To httpbin.org...
but then it doesn't actually signal that it has connected, even if it has. However, when you type your next commands like in the video, you should see them appear at the very top left of your screen, even above where it says Connecting To...
. It will probably be overwriting some other stuff that's already there. It's weird that way.
(If you want to try to use the st
command, you'll need to hit Ctrl+] once you connect, so that the command is going to your local telnet environment and not as a command to a remote server, which is expecting some sort of GET or POST type of command.)
Let me know if any of that works for you!
Piotr Manczak
Front End Web Development Techdegree Graduate 29,365 PointsAlso when I type st (which stands for status) I get response: Not Connected
Piotr Manczak
Front End Web Development Techdegree Graduate 29,365 PointsYou were right. It seems to work the way you have described ()at least I made some sort of progress. However after I did what you had said this showed:
HTTP/1.1 400 BAD_REQUEST
Content-Length: 0 Connection: Close
Connection to host lost.
I will keep trying.
I tried doing this same with "open google.com 80" and I got the answer. It feels so good. Again perseverance has paid off. Thank you for your help. You know who you are?
You are my hero!!