Created
July 22, 2025 16:07
-
-
Save seanw122/ae945b9788785ddf323edee520e5f469 to your computer and use it in GitHub Desktop.
Ping without Ping
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
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