Skip to content

Instantly share code, notes, and snippets.

@seanw122
Created July 22, 2025 16:07
Show Gist options
  • Save seanw122/ae945b9788785ddf323edee520e5f469 to your computer and use it in GitHub Desktop.
Save seanw122/ae945b9788785ddf323edee520e5f469 to your computer and use it in GitHub Desktop.
Ping without Ping
Ping from inside an Azure App Service:
tcpping <host IP>:<port>
Ping without Ping installed on Linux containers:
timeout 5 bash -c "</dev/tcp/1.1.1.1/22" && echo "$(date): Connection success" || echo "$(date): Connection failed"
as a loop:
while true; do timeout 5 bash -c "</dev/tcp/1.1.1.1/22" && echo "$(date): Connection success" || echo "$(date): Connection failed"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment