Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if port is open on a remote server with batch file and without third party software? [closed]

As this question is closed (where I intended to answer first) I'm opening this one.

On some machines it is forbidden to install/download binaries so I want to know how can I check if a port on a remote machine is open using only native windows script capabilities.

like image 657
npocmaka Avatar asked Jan 07 '17 14:01

npocmaka


1 Answers

If you only want to check TCP ports you can use Test-NetConnection. If offers a -Port parameter to define the TCP port.

like image 52
Moerwald Avatar answered Sep 22 '22 05:09

Moerwald