ruPING is a modern, high-performance, and memory-safe Linux reimplementation of the classic paping TCP ping tool, written in Rust.
Standard ICMP ping only tests whether a remote host replies to ICMP echo requests—often blocked by firewalls or cloud security groups. ruPING measures TCP SYN/ACK connection handshake latency to any specific port, allowing you to accurately test service reachability, firewall rules, and application response latency.
- Strict CLI Compatibility: Complete drop-in replacement for
papingwith matching arguments, output syntax, and exit codes. - Accurate Sub-Millisecond Timing: Measures TCP SYN-ACK handshake round-trip times with microsecond-level precision.
- Color-Coded Terminal Output: Visual indicators for connection targets (Yellow), successful probes (Green), timeouts/errors (Red), and summary statistics (Blue).
- Script-Friendly:
--nocolorflag strips all ANSI escape codes for clean piping to logs and monitoring scripts. - Canonical Hostname Detection: Automatically resolves FQDNs, aliases (CNAMEs), and IPv4/IPv6 literals.
- Signal-Aware: Catches
SIGINT(Ctrl+C) and immediately prints full connection statistics before exiting. - Native 64-bit Linux Binary: No multiarch dependencies, no legacy C++ socket bugs, zero garbage collection pauses.
Install directly via the official Launchpad PPA repository:
sudo add-apt-repository ppa:forjules/ruping
sudo apt update
sudo apt install rupingTo remove:
sudo apt remove ruping
sudo add-apt-repository --remove ppa:forjules/rupingDownload and install the prebuilt .deb package:
# Direct install from the repo
sudo dpkg -i dist/ruping_2.0.3-1_amd64.deb
# Or download from latest GitHub releases
wget https://github.com/forjules/ruping/releases/latest/download/ruping_2.0.3-1_amd64.deb
sudo dpkg -i ruping_2.0.3-1_amd64.debTo uninstall:
sudo apt remove rupingRun the included installer to build and link ruping directly into /usr/local/bin:
git clone https://github.com/forjules/ruping.git
cd ruping
./install.shIf you have Rust and Cargo installed:
cargo install --git https://github.com/forjules/ruping.gitOr from a local clone:
cargo install --path .Syntax: ruping [options] destination
Options:
-?, --help display usage
-p, --port N set TCP port N (required)
--nocolor Disable color output
-t, --timeout timeout in milliseconds (default 1000)
-c, --count N set number of checks to N
ruping 1.1.1.1 -p 80Press Ctrl+C at any time to break and view connection statistics.
ruping v2 - Copyright (c) 2026 jSSH.app
Connecting to 1.1.1.1 on TCP 80:
Connected to 1.1.1.1: time=2.87ms protocol=TCP port=80
Connected to 1.1.1.1: time=2.94ms protocol=TCP port=80
Connected to 1.1.1.1: time=2.80ms protocol=TCP port=80
Connection statistics:
Attempted = 3, Connected = 3, Failed = 0 (0.00%)
Approximate connection times:
Minimum = 2.80ms, Maximum = 2.94ms, Average = 2.87ms
ruping google.com -p 443 -c 4 -t 500ruping 1.1.1.1 -p 80 -c 2 --nocolor >> /var/log/network_check.logruping 127.0.0.1 -p 44444 -c 2ruping v2 - Copyright (c) 2026 jSSH.app
Connecting to 127.0.0.1 on TCP 44444:
Connection timed out
Connection timed out
Connection statistics:
Attempted = 2, Connected = 0, Failed = 2 (100.00%)
Approximate connection times:
Minimum = 0.00ms, Maximum = 0.00ms, Average = 0.00ms
ruPING returns standard POSIX exit codes, making it seamless for shell scripting and CI/CD pipelines:
| Exit Code | Constant | Meaning |
|---|---|---|
0 |
SUCCESS |
All connection attempts completed successfully |
1 |
FAILURE |
One or more probes timed out or failed to connect |
101 |
ERROR_SOCKET_CANNOTRESOLVE |
Target hostname could not be resolved |
200 |
ERROR_INVALIDARGUMENTS |
Invalid arguments, missing required options, or help displayed |
# Clone the repository
git clone https://github.com/forjules/ruping.git
cd ruping
# Run test suite (unit and CLI integration tests)
cargo test
# Run linter
cargo clippy
# Build optimized release binary
cargo build --release
# Build standalone .deb package
./scripts/build-deb.shDistributed under the MIT License. See LICENSE for details.
- ruPING by jSSH.app
- Original paping by Mike Lovell