Getting out of telnet session gracefully

Discussion in 'Computer Support' started by Spin, Mar 14, 2008.

  1. Spin

    Spin Guest


    When you open up a command prompt window and run a telnet test to a host
    (for example: telnet 80), if the test is successful (remote host is
    listening) you get a bunch of "-" marks down the left-hand side of the
    window if you keep pressing ENTER. But, how do you exit out of this?
    Frequently I have to close the CMD window and re-open so I can run a test to
    against another computer (IP host). Thoughts?
    Spin, Mar 14, 2008
    1. Advertisements

  2. Spin

    Mr. Arnold Guest
    Mr. Arnold, Mar 14, 2008
    1. Advertisements

  3. Spin

    VanguardLH Guest

    If 'quit' doesn't work then the server is waiting for input. If you
    can't enter the appropriate input then maybe Ctrl+C will break out if
    the server hasn't disabled it. Sometimes when you 'quit', it looks
    like you are still in the telnet session because telnet.exe doesn't
    show the command prompt but just hitting Enter will paint a new line
    and show the prompt.

    'telnet /?' just shows the syntax for the command line to execute the
    program. Use Start -> Help and Support to get information on the
    commands available within a telnet session (that are for the telnet
    program versus the commands that the server will accept).
    VanguardLH, Mar 14, 2008
  4. Spin

    Brian Cryer Guest

    Control-C sort of works - in that the server then responds with a bad
    request page (complete with html) and then the connection is broken. But
    this isn't ideal.

    If you are doing this to simply test that the web server is responding then
    try cryping (free from

    C:\>cryping -n 1 -http
    CryPing - from v1.2 (build Jan 2008)
    Pinging for http status:

    Reply from 302 Found time=319ms

    HTTP ping statistics for
    Requests: Sent = 1, Responses = 1, Lost = 0 (0% loss),
    302 Found 1 times (100%)
    Approximate round trip times:
    Minimum = 319ms, Maximum = 319ms, Average = 319ms
    Brian Cryer, Mar 14, 2008
  5. Spin

    Spin Guest

    Answer found here:

    "hit ctrl-] (yep, control and the right-bracket). That will return you to a
    telnet command prompt. From there you can enter the quit command (q is
    sufficient) and you will be returned to your usual Windows command prompt."
    Spin, Mar 14, 2008
  6. Spin

    Mike Easter Guest

    I much prefer the tool IDServe over telnet.

    <type into the IDServe window, click Query>

    Initiating server query ...
    Looking up IP address for domain:
    The IP address for the domain is:
    Connecting to the server on standard HTTP port: 80
    [Connected] Requesting the server's default page.
    The server returned the following response headers:
    HTTP/1.1 302 Found
    Date: Fri, 14 Mar 2008 15:50:57 GMT
    Server: Apache
    Content-Length: 260
    Connection: close
    <munge> Content-Type: text/html; charset=iso-8859-1
    Query complete.

    There are many more functions for IDServe; the default port is 80, but
    you can use any other, such as 119 for newsservers, 25 or 110 for
    mailservers, etc. a simple, free, small (26 kbytes),
    and fast, general purpose Internet server identification utility.
    Mike Easter, Mar 14, 2008
  7. Spin

    Brian Cryer Guest

    Useful to know. Thank you for posting back.
    Brian Cryer, Mar 14, 2008
  8. Spin

    Barry OGrady Guest


    Home page
    Barry OGrady, Mar 19, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.