Last active
August 19, 2025 19:13
-
-
Save bfrancom/a8b14d30e4374608b1f776eaea477011 to your computer and use it in GitHub Desktop.
Linux native remote host and port open check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec 3<>/dev/tcp/<host>/<port> && echo "Port is open" || echo "Port is closed or unreachable" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment