3 ms·
I'm not going to stop using telnet to check ports when I just need to do a one-off, ad-hoc test directly from the command line. Too much muscle memory acquired
by mindcrime 4y ago
I'm not going to stop using telnet to check ports when I just need to do a one-off, ad-hoc test directly from the command line. Too much muscle memory acquired around typing "telnet $host $port". But I DO use nc instead when writing scripts that need to test ports.
I borrowed the nc approach from one of the answers on this SO thread, which has some moderately interesting stuff in it:
https://stackoverflow.com/questions/4922943/test-if-remote-tcp-port-is-open-from-a-shell-script https://stackoverflow.com/questions/4922943/test-if-remote-t...