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 -port 3389

If port is open you will get output like below.

ComputerName :
RemoteAddress :
RemotePort: 3389
InterfaceAlias : Ethernet 3
SourceAddress :
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 failed
ComputerName :
RemoteAddress :
RemotePort : 3389
InterfaceAlias : Ethernet 3
SourceAddress :
PingSucceeded : True
PingReplyDetails (RTT) : 147 ms
TcpTestSucceeded : False

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

No comments:

Post a Comment