I have two Windows Servers.. Server A and Server B. There is a service configured on Server A to listen on port P. Is there a way to check if the port is opened in Windows Server B irrespective of service running or not. One way is telnet ..but this would work only if the service is running and listening on Port. But, is there a way to find if the port is opened irrespective of the service state? Linux has an "nc" command to achieve the same. Do we have something similar in Windows?
Thanks.!
Best Answer
You can use netstat.exe to query for open ports.
netstat.exe:
example netstat -a:
To do a remote netstat.exe you can use psexec tool (free avaiable from here)
example: