Windows Server

Could not open a connection to the host, on the port, connect failed

Telnet is a client/server application protocol that provides access to virtual terminals of remote systems on local area networks or the Internet. Telnet consists of two components: the protocol itself which specifies how two parties to communicate and the software application that provides the service. For more related Windows Operating System errors you can read this: How to Fix “Insufficient System Resources Exist to Complete the Requested Service” error, How to fix the issue “The Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship” on Windows Server [Part 2].

This “Could not open a connection to the host, on the port, connect failed” error was prompted when I tried telnetting into a specific port. Since I have created relatively some firewall articles, please refer to the links below on how to create a firewall rule.

Could not open a connection to the host, on the port, connect failed

Below are the following steps that helped resolve my issue

For some reason, the TCP/IP field was set to obtain IP Address automatically and the IP address it got was for a different network

Configure TCP/IP properties

– I created a Windows Firewall to permit traffic from the following steps below for the various ports I wanted to test connectivity (permit). On how to create a firewall rule, use the steps and links below.

Access the control panel Advanced Settings via the following path

Control Panel\System and Security\Windows Defender Firewall

– Click on Advanced Settings as shown below

This will open up the Windows Defender Firewall with Advanced Security
– Select Inbound Rules from the left-hand pane
– Under Inbound Rule Actions.
– Select New Rule.
– For the rule type, Select Port, click next, select TCP and specific local ports.
– Enter 23, and other TCP ports you want to permit and
– Click next.

– Select Allow Connection then click next.
– Specify when the new rule can be applied (Domain, Private, and Public)
– Give the Inbound Rule a meaning name such as “Myrules” 😉
– Click on finished.

That’s it for troubleshooting “Could not open a connection to the host, on the port, connect failed”. I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x