Telnet Timeout Issue

Posted on 2007-10-06
Last Modified: 2008-01-09
Ok gusy..

Two machines..

Machine 1:  Windows 2003 Server   ( has a telnet service running on it or server)
Machine 2:  windows xp just a client machine...  

machine 2 telnets into machine 1. works like a charm. However after a certain amount of inactivity or something the telnet session timesout. I don't want the timeout to happen at all. I want machine 2 to stay connected to machine 1 at all times.

I even get this message on the client machine saying...
"Telnet Server has closed the connection
Session timed out.

Connection to host lost."

Please help me solve this issue.  

Highly appreciated.
Question by:theitguy
    LVL 26

    Accepted Solution

    You can set timeout settings of telnet server.

    Click Start -> Run -> Cmd.exe

    tlntadmn [\\RemoteServer] config [timeout=hh:mm:ss] [-u UserName-p Password]

    For more info:
    LVL 26

    Expert Comment

    If you are performing command on local server then

    Start -> Run -> Cmd.exe

    tlntadmn config timeout=00:30:00

    This will set timeout setting to 30 mins.

    and if you want to set timeout setting for remote server then

    tlntadmn \\RmtServerName config timeout=00:30:00 -u Administrator -p P@ssw0rd


    Author Comment

    thank you for you reponse... just curious intead of specifing the time as to how long to keep the session active...isn't there a way to just set the time to infinity or something..i mean the session is only terminated if the user decides to do that... else it stays active...

    Author Comment


    also...right now when the session timesout... the window that is open sometimes goes dead.. .so you can't close it... i could not close it even by going to the task manager and using the end task ..... does not happen always but does happen time to time.. is that normal... or what?.

    LVL 26

    Expert Comment

    >> .isn't there a way to just set the time to infinity or something
    Yes! you can turn off this function by applying following command

    tlntadmn config timeoutactive=no

    You can help and further options using /? help switch like:
    tlntadmn /?
    tlntadmn config /?

    Author Comment

    ok let met try that... also the post about where the window hangs and i cannot close it even with end task...

    any thoughts on that?

    Your help highly appreciate>
    LVL 26

    Expert Comment

    It only hangs when Telnet session disconnects?


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now