This repository is archived and no longer maintained.
Includes TAR archives per platform:
- an executable (like tcp_ping-linux-386)
- index.html - Should be in the same folder with the executable, otherwise the program will crash !
- an example.txt file that can be modified by needs
- Web Ping with defauts (defaults: port=443, interval=1s, counter=4)
./ping_util-linux-amd64 -p web -file example.txt
- Web Ping with count 10, interval 3s, timeout 3s
./tcp_ping-linux-amd64 -p web -file example.txt -c 10 -i 3s -t 3s
-
ping over TCP with defaults (defaults: port=443, interval=1s, counter=4)
ping_util-linux-amd64 example.com
-
ping over TCP over with custom port, counter and interval
ping_util-linux-amd64 -p tcp -port 80 -c 3 -i 3s example.com
-
ping over UDP with defaults
ping_util-linux-amd64 -p udp example.com
- ping over ICMP in Privileged (run as super-user) mode !!!
sudo ./ping_util -p icmp -privileged example.com
- ping over ICMP without Privileged mode, is actually over UDP
sudo ./ping_util -p icmp -privileged example.com
./ping_util-linux-amd64 -p web -file example.txt
2020/06/22 07:53:34 API listening on port 8080. Open browser: http://localhost:8080
Open http://localhost:8080 in the browser.
In Privileged mode:
$ sudo ./ping_util-linux-amd64 -p web -privileged -file example.txt
2020/06/26 14:53:59 API listening on port 8080. Open browser: http://localhost:8080
Ping over TCP with a custom port, counter and interval.
$ ./ping_util-linux-amd64 -p tcp -port 80 -c 3 -i 3s example.com
Ping example.com:80(93.184.216.34:80) - Connected - time=428.117245ms
Ping example.com:80(93.184.216.34:80) - Connected - time=295.362951ms
Ping example.com:80(93.184.216.34:80) - Connected - time=162.165586ms
2020/06/26 14:48:34 ping done for site example.com
Ping statistics example.com:80
3 probes sent.
3 successful, 0 failed.
Approximate trip times:
Minimum = 162.165586ms, Maximum = 428.117245ms, Average = 295.21526ms
$ ./ping_util -p udp example.com
Ping example.com:443(93.184.216.34:443) - Connected - time=3.046954ms
Ping example.com:443(93.184.216.34:443) - Connected - time=1.396042ms
Ping example.com:443(93.184.216.34:443) - Connected - time=1.938326ms
Ping example.com:443(93.184.216.34:443) - Connected - time=1.638996ms
2020/06/26 14:50:19 ping done for site example.com
Ping statistics example.com:443
4 probes sent.
4 successful, 0 failed.
Approximate trip times:
Minimum = 1.396042ms, Maximum = 3.046954ms, Average = 2.005079ms