Skip to content

Instantly share code, notes, and snippets.

@bfrancom
Last active August 19, 2025 19:13
Show Gist options
  • Save bfrancom/a8b14d30e4374608b1f776eaea477011 to your computer and use it in GitHub Desktop.
Save bfrancom/a8b14d30e4374608b1f776eaea477011 to your computer and use it in GitHub Desktop.
Linux native remote host and port open check
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