3 ms·
You technically don't even need any external commands to check if a remote port it open since bash itself can open raw tcp/udp connections. $ timeout 5 bas
by Spivak 9y ago
You technically don't even need any external commands to check if a remote port it open since bash itself can open raw tcp/udp connections.
$ timeout 5 bash -c 'cat </dev/null >/dev/tcp/google.com/80' && echo "Open" || echo "Closed"