Skip to content

Instantly share code, notes, and snippets.

@rjattrill
Created July 6, 2012 01:56
Show Gist options
  • Save rjattrill/3057564 to your computer and use it in GitHub Desktop.
Save rjattrill/3057564 to your computer and use it in GitHub Desktop.
Test if a port is open using powershell
1443 | % { echo ((new-object Net.Sockets.TcpClient).Connect("192.168.75.11",$_)) "server listening on TCP port $ _" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment