Home Page
   
 
Home
Features
Screen Shots
Requirements
Download
Ordering
Support
Notes
Online Help
About Me
 
Other Items
Using the Telnet Command to Check for Connection Issues Back

For this example, let's say you're trying to connect to Hercules TK4 running on your Windows machine via localhost port 3270, and you get a connection error such as:

That message is from Vista getting an error when it tries to run the TCPIP connect() function. Before we blame Vista, let's try running the telnet command, which (although it can't handle TN3270 protocol) tries to run the very same connect() function as Vista. So we can use that for diagnosis.

To do that, open a DOS window and issue a command such as:

telnet localhost 3270

You'll likely get one of 4 results. The result below shows that telnet tried the connect() and failed. That would typically mean there's a problem with the network, firewall, the service is not up, there's a typo somewhere, etc. You'll need to hunt for that, but basically in this case it doesn't look like the problem is with Vista.

You may also see the DOS screen completely clear itself, such as the test below. This means telnet got connected ok, but could not handle the TN3270 protocol. It probably means the connection problem is with Vista and not with the service or network.

With Hercules, you may see the following since it handles the telnet connection slightly different, but this message typically means the connection should work in Vista:

And last but not least, you may receive a message like this:

In that last case, you've probably just discovered that the telnet command is not automatically enabled in later versions of Windows. I guess they think it's only useful for programmers or something. Anyway, if you have admin authority to the PC, you can enable it by:

1) Right-click a DOS icon or start menu item and click Run as administrator

2) Copy/paste this command to the DOS window:
dism /online /Enable-Feature /FeatureName:TelnetClient

3) That's it... try the telnet command again now.

Testing Production Ports

And of course you can use that same telnet command with a real host name and port, such as:

telnet tn3270.company.com 23
telnet tn3270.company.com 992

Note that the second command above is trying to connect to port 992, which is typically an encrypted session. Since we're only interested in the connect() function of telnet which comes before any encryption negotiation, it makes no difference whether the port is encrypted or not. It's still a valid connect test.

 

   
  Home | Features | Screen Samples | Download | Requirements
Ordering | Tech Support | Notes | Online Help | About Me | Other Items

Page Last Updated 05/29/2023
Contact support@tombrennansoftware.com