Getting out of telnet session gracefully

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

  1. Spin

    Spin Guest

    Gurus,

    When you open up a command prompt window and run a telnet test to a host
    (for example: telnet cnn.com 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
    1. Advertisements

  2. Spin

    Mr. Arnold Guest

    http://www.google.com/search?hl=en&q=how+to+quit+telnet+&btnG=Google+Search
     
    Mr. Arnold, Mar 14, 2008
    #2
    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
    #3
  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 http://www.cryer.co.uk/downloads/cryping/):

    C:\>cryping -n 1 -http cnn.com
    CryPing - from www.cryer.co.uk v1.2 (build Jan 2008)
    Pinging cnn.com for http status:

    Reply from cnn.com: 302 Found time=319ms

    HTTP ping statistics for cnn.com:
    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
    #4
  5. Spin

    Spin Guest

    Answer found here:

    http://209.85.165.104/search?q=cach.../+how+to+quit+telnet&hl=en&ct=clnk&cd=3&gl=us

    "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
    #5
  6. Spin

    Mike Easter Guest

    I much prefer the tool IDServe over telnet.

    <type cnn.com into the IDServe window, click Query>

    Initiating server query ...
    Looking up IP address for domain: cnn.com
    The IP address for the domain is: 64.236.16.52
    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
    Location: http://www.cnn.com/
    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.

    http://www.grc.com/id/idserve.htm a simple, free, small (26 kbytes),
    and fast, general purpose Internet server identification utility.
     
    Mike Easter, Mar 14, 2008
    #6
  7. Spin

    Brian Cryer Guest

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

    Barry OGrady Guest

    ^]

    Barry
    =====
    Home page
    http://members.iinet.net.au/~barry.og
     
    Barry OGrady, Mar 19, 2008
    #8
    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.