Test TCP connection without telnet or nc It’s simple $ timeout 1 bash -c '< /dev/tcp/google.com/80' $ echo $? 0 2024-02-23