Welcome to OhAPinger, a lightweight cross-platform network latency testing tool written in C++ (Clang-ready).
OSS project made by bangkkuser
cd OhAPinger/source && chmod +x build.sh && ./build.shThis will generate a file called OhAPinger-v$VERSION-$ARCH-UNOFFICIAL-Compiled. Execute it with
chmod +x OhAPinger-v$VERSION-$ARCH-UNOFFICIAL-Compiled && ./OhAPinger-v$VERSION-$ARCH-UNOFFICIAL-Compiled- ping any host or IP
- latency per request (ms)
- live mode (continuous ping stream)
- min / max / average stats
- packet loss calculation
- multi-session support (restart system)
- cross-platform support:
- Linux
- macOS
- Android (Termux / CxxDroid)
OhAPinger uses the system ping command and parses its output.
It extracts:
- time=XX ms
- timeout responses
- connection status
No raw sockets are used, keeping it simple, portable, and dependency-free.
Enter host/IP: github.com
Enter number of tests: 10
Type: live
instead of number of tests.
- continuous ping stream
- real-time latency output
- stop with CTRL + C
Test 1: 14.3 ms
Test 2: 13.9 ms
Test 3: 15.1 ms
Termux:
pkg install clang
clang++ main.cpp -O2 -std=c++17 -o ohaping- Clang or G++ compiler
- system ping command available
- internet connection
- depends on system ping output format
- live mode uses repeated system calls
- parsing may vary between OS versions
- no raw ICMP sockets (by design for portability)
- ASCII real-time graph
- multi-host monitoring dashboard
- jitter detection system
- export logs (.txt / .csv)
- network stability score
This tool is for educational and diagnostic purposes only.
- bangkkuser | Android aarch64 maintainer, Project Creator
- Kultrinhaa_ | Linux x86_64 maintainer, Project helper (commited 1x on README.mkdn)
