Showing posts with label no telnet windows server 2016. Show all posts
Showing posts with label no telnet windows server 2016. Show all posts

Solved: How to check remote port status in windows server 2016 without telnet



Telnet was always a security risk as data transfer is not secure on it. Seems like Microsoft has now finally removed it from Windows Server 2016.

We generally use telnet to check if a port is open on the remote server. So, how to check it now without telnet?

Instead of telnet you can use powershell commands to check the connections.

Please follow below steps for details.
Search for Windows powershell and open its console in your Windows 2016 server.
Use “Test-NetConnection ” command to check the port status. Let’s check if ports 3389 is open.

 Test-NetConnection 10.0.1.15 -port 3389

If port is open you will get output like below.

ComputerName : 10.0.1.15
RemoteAddress : 10.0.1.15
RemotePort: 3389
InterfaceAlias : Ethernet 3
SourceAddress :  10.0.1.37
TcpTestSucceeded : True

Else, you will get failed message. In the below example we can see that the ping reply succeeded as ICMP is allowed, but “TcpTestSucceeded” is false as remote port 3389 is not open.

WARNING: TCP connect to 20.0.1.18:3389 failed
ComputerName : 20.0.1.18
RemoteAddress : 20.0.1.18
RemotePort : 3389
InterfaceAlias : Ethernet 3
SourceAddress : 10.0.1.37
PingSucceeded : True
PingReplyDetails (RTT) : 147 ms
TcpTestSucceeded : False


Tip:- Read this post for checking port in Linux without telnet .