PowerShell
Code: Select all
Test-NetConnection <machine> -port <port>
Usage:
Test-NetConnection google.com -port 80
Test-NetConnection dbserver -port 1433
If response includes TcpTestSucceeded: True
Code: Select all
ssh -o ConnectTimeout=1 -p <port> <machine>
ssh -p 3389 www.adres.com
Code: Select all
nc -zv <machine> <port>
nc -zv mywire.org 3389