Testing if a port can be reached, open port
Posted: 23 Oct 2023, 17:51
https://www.carehart.org/blog/2023/10/1 ... han_telnet
PowerShell
PowerShell
Linux
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