• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 687
  • Last Modified:

can't establish a telnet session on Windows XP machine

Running Windows XP Professional SP 2 on a Dell Latitude D820. Trying to establish a telnet session locally on machine on port 24.  Receiving error: "Connection to host lost" when running the Microsoft telnet.  When running Pragmasys Telnet Server version 6 as the telnet server the connection just times out.
0
JWFreedom
Asked:
JWFreedom
  • 12
  • 10
  • +1
1 Solution
 
Irwin SantosComputer Integration SpecialistCommented:
Turn off your Windows Firewall...
Also, you may need to have portforwarding allowed for the telnet access.

http://www.portforward.com , lookup your router and select Telnet, you will have a step x step configuration manual
0
 
prashsaxCommented:
why on port 24 and not port 23.

are you telnet server is listening on port 24.



0
 
JWFreedomAuthor Commented:
Yes I run nestat -ano and I can see that the Telnet server is listening on port 24.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
JWFreedomAuthor Commented:
I am telneting from and to the same machine, therefore there are no routers involved. The option to turn off the firewall is greyed out.
0
 
prashsaxCommented:
Telnet server do not use port 24 by default. You need to change it manually.

goto Run-->services.msc

check is telnet service is started.

then from dos prompt.

telnet you_local_ip

do not supply any ports.

see what happens.
0
 
JWFreedomAuthor Commented:
I enabled the Windows Telnet server service then ran the telnet command without using a port and received the error: "Failure in initializing the telnet session.  Shell process may not have been launched.  Telnet Server has closed the connection.  Connection to hos lost."
0
 
prashsaxCommented:
Check if Secondary Logon service is also started.

Telnet requires it to create another session.
0
 
JWFreedomAuthor Commented:
Don't mean to show my ignorance, but where would I check to verify that?
0
 
prashsaxCommented:
Start->Run->services.msc "Click OK"

This will open a windows with list of many services with their current state.

Locate Secondary Logon Service, make sure its startup type is set to automatic or manual.

Then check the status, it should be started, if not right click on the service name and click start.

To change Startup type, Right click on it and select properties. You should see Startup Type Drop down box. Select Automatic from their.
0
 
JWFreedomAuthor Commented:
Ok, sorry don't know what I was thinking, yes it is already started and it is set to automatic.
0
 
prashsaxCommented:
Ok here is one more thing you can do.

goto command prompt.
And use these commands:

CD %systemroot%\system32
net stop tlntsvr
tlntsvr /unregserver
tlntsvr /service
net start tlntsvr



0
 
JWFreedomAuthor Commented:
I have followed the steps and I still remain unsuccessful, receiving same error: "Failure in initializing the telnet session.  Shell process may not have been launched.  Telnet Server has closed the connection.  Connection to hos lost."
0
 
prashsaxCommented:
Are you running Window XP Pro 64-bit edition.
0
 
JWFreedomAuthor Commented:
no
0
 
Computerguy107Commented:
Can you ping the server you want to telnet to.....if you can't you need to determine why...try and ping locally....if you can ping you should be able to connect...most remote problems are due to firewalls or routhers not setup correctly...
0
 
JWFreedomAuthor Commented:
I believe it is a rights issue with my profile.  If I sign on as someone else or the local administrator it works.  So I removed the profile via My Computer -> Properties -> Advanced -> User Profiles -> Clicked "settings" -> removed profile.  Once the profile was removed I added myself back.  Still could not telnet.
0
 
prashsaxCommented:
try making your self local administrator.

Also, see it you have right on cmd.exe.
0
 
JWFreedomAuthor Commented:
Port 23 works, but port 24 fails whether using Microsoft's Telnet or Pragmasys InterAccess TelnetD.
0
 
prashsaxCommented:
But you can't run Microsoft Telnet Server on Port 24.

It must have been used by something else.

Use, fport and see which program has opened port 24 on the machine.
0
 
JWFreedomAuthor Commented:
The Fport utility shows port 24 for the TelnetD  server, still can not establish a connection using TelnetD.  I should also mention this is only happening on the Dell 820 latitudes we have here.
0
 
prashsaxCommented:
If you have any Antivirus Installed on it, please disable it and then try and connecting again.

Better still, if you can stop its services.
0
 
JWFreedomAuthor Commented:
So, I turned off the firewall and the Anti-Virus software and still couldn't do a telnet session with InetD.
0
 
JWFreedomAuthor Commented:
After further searching on a WinSock Error we received when using our software which calls telnet we found the fix:  WinsockxpFix.exe

After installing the fix all is well.

Thank you for your time and energy!
0
 
prashsaxCommented:
Good.

So, it was corrupt winsock.


0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 12
  • 10
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now