curl -L -o /sdcard/Download/ping_voip_pops.sh https://gist.githubusercontent.com/TheBoroer/38dfec8d6751f7361d5126ebfd0d531d/raw/e0f14d8b513de3e119a3e7037292ba412962d240/ping_voip_pops.sh
chmod +x /sdcard/Download/ping_voip_pops.sh
bash /sdcard/Download/ping_voip_pops.sh
Last active
October 26, 2025 03:55
-
-
Save TheBoroer/38dfec8d6751f7361d5126ebfd0d531d to your computer and use it in GitHub Desktop.
Description for gist: Simple bash script to ping all VoIP.ms POP servers and display average latency (ms) for each. Useful for quickly finding the best VoIP.ms server based on your location. Works on Linux, macOS, or Termux; supports parallel pings and optional fping for faster results.
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
| #!/usr/bin/env bash | |
| # ping_voip_pops_mobile.sh | |
| # Compatible with Android / BusyBox (no fancy xargs) | |
| set -eu | |
| hosts=( | |
| montreal.voip.ms montreal2.voip.ms montreal3.voip.ms | |
| toronto.voip.ms toronto2.voip.ms toronto3.voip.ms | |
| vancouver.voip.ms vancouver2.voip.ms | |
| atlanta.voip.ms chicago.voip.ms dallas.voip.ms | |
| denver.voip.ms houston.voip.ms losangeles.voip.ms | |
| newyork.voip.ms sanjose.voip.ms seattle.voip.ms | |
| tampa.voip.ms washington.voip.ms | |
| amsterdam1.voip.ms london1.voip.ms paris1.voip.ms sydney1.voip.ms | |
| ) | |
| printf "%-25s %10s\n" "hostname" "avg ms" | |
| printf '%s\n' "--------------------------------------" | |
| for host in "${hosts[@]}"; do | |
| out=$(ping -c 3 -W 2 "$host" 2>/dev/null | grep 'avg' || true) | |
| if [ -z "$out" ]; then | |
| printf "%-25s %10s\n" "$host" "unreachable" | |
| else | |
| avg=$(echo "$out" | sed -E 's/.*= *[0-9.]+\/([0-9.]+)\/.*/\1/') | |
| printf "%-25s %10s\n" "$host" "$avg" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment