Solved

Could not open connection to the host, on port 23: connect failed.

Posted on 2011-09-27
12
2,492 Views
Last Modified: 2012-05-12
I am using telnet from my client (192.168.70.21) to connect with my server (192.168.70.20).

I go this error message.  Can anyone tell me what might go wrong?
Capture4.JPG
0
Comment
Question by:tommym121
  • 7
  • 5
12 Comments
 

Author Comment

by:tommym121
ID: 36714137
Sorry. I miss to send other images Inbound rule for Firewall on ServerCapture2.JPG
Capture3.JPG
Capture5.JPG
0
 
LVL 6

Accepted Solution

by:
expone earned 500 total points
ID: 36714312
This means that either your server (192.168.70.20) doesn't have a Telnet Server process running on port 23, so it is not accepting your telnet connection (from 192.168.70.21), or your firewall is not allowing traffic on port 23.

Try disabling your firewall temporarily and then test telnet. If it works, then you need to tweek the firewall. If it still doesn't work, then you need to check whether your server is running the telnet server.
0
 

Author Comment

by:tommym121
ID: 36714353
The Telnet Server (Tlntsvr.exe) is running.

If I change the inbound connections: from Block (default) to Allow in the Domain Profile Tab of Windows Firewall with Advanced Security Properties,  Telnet works.

What I don't understand is that if my inbound rule for telnet is enable, why I nned to turn the inbound connections to be Allow
0
 
LVL 6

Assisted Solution

by:expone
expone earned 500 total points
ID: 36714367
You need to allow the inbound connections on port 23, so that Telnet Server (from outside your PC) can talk to the Telnet Client (which is inside your PC, hence the need for the inbound rule).
0
 

Author Comment

by:tommym121
ID: 36714436
But if you look at the screen capture (capture1) -  Inbound rule for Firewall on Server.

Does it indicate the Telnet inbound Rule is enable with port 23 for the my server?
0
 
LVL 6

Assisted Solution

by:expone
expone earned 500 total points
ID: 36715764
Yes,  "capture1" above indicates that Telnet inbound Rule is enabled for port 23 on your server. This will allow the server to accept inbound telnet connections on port 23 from your PC.
0
The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

 

Author Comment

by:tommym121
ID: 36716096
But with that configuration, I still have the error.  That is why I am not sure what I miss?
0
 

Author Comment

by:tommym121
ID: 36716538
And if you look at the  firewall logfile, it actually dropping the telnet packet even I enable Telnet.

0
 
LVL 6

Assisted Solution

by:expone
expone earned 500 total points
ID: 36719219
Different firewalls work different ways. The main thing is that you figured out how to make it work with turning the inbound connections to be Allowed.
0
 

Author Comment

by:tommym121
ID: 36814983
I am using Firewall comes with Windows Server 2008 R2
0
 
LVL 6

Assisted Solution

by:expone
expone earned 500 total points
ID: 36818321
Good on you mate :-)
0
 

Author Closing Comment

by:tommym121
ID: 36956112
Thanks for your effort
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
NSX Manager - Backup 4 45
Recreate datastore 7 53
P2V Conversion error 1 41
Monitor vmware windows vm status of services 9 34
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

757 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

16 Experts available now in Live!

Get 1:1 Help Now