4

I type this command in a Windows Command Prompt in XP.

telnet microsoft.com 80 

Connecting to microsoft.com appears and then telnet window opens, but there is nothing inside it.

If I type any command like GET / HTTP/1.1, it doesn't appear either.

Are my starting steps correct?

5
  • Might be better suited to be asked in SuperUser... Aug 17, 2011 at 16:16
  • i think everything is working as it should - telnet does not echo it's prompt .. just make sure to use the proper commands and encoding ... sending some useless glibberish should prompt some answer though.
    – CKoenig
    Aug 17, 2011 at 16:18
  • I m sorry, but what does that mean ??
    – ShantanuD
    Aug 17, 2011 at 16:18
  • type "telnet microsoft.com 80", enter, type "GET/HTTP/1.0" (won't show on screen), Then press enter twice. (Don't type quotes) Don't bother though, it's just an error.
    – user175737
    Nov 25, 2012 at 4:27
  • Rephrasing what @user175737 said: type telnet microsoft.com 80; hit Enter key bringing you a blank console; type GET / HTTP/1.0 (won't show on screen); hit Enter key twice. Mar 7, 2018 at 20:45

2 Answers 2

6

Telnet has no echoing by default. Enter telnet in interactive mode (no arguments, just execute telnet). Then type set localecho. Then open host port.

I suggest you to use netcat, easier to use and way more powerful. telnet is obsolete.

1
  • Note that when you see Connecting To microsoft.com... it has already connected. I thought I need to wait for the connection to succeed, only to find Connection to host lost.. Mar 7, 2018 at 20:43
4

You're trying to connect to an HTTP server, that's what is on port 80 most of the time. The HTTP protocol requires that the guest start talking first. You may want to read up on HTTP if you want to explore: http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

But connecting to port 80 won't get you a shell, telnet servers usually operate on port 23. But telnet is not really used over the Internet anymore because it's not secure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.