#tcp-port #command-line-arguments #latency #ping #arguments-parser #clap #utility

app tcping

🛠️ tcping-rs: Rust (rs) TCP Ping (tcping) Utility for Port Reachability

8 stable releases

1.2.5 Dec 17, 2024
1.2.4 Nov 27, 2024
1.2.3 Oct 29, 2024
1.2.0 Sep 24, 2024
0.0.1 Jan 14, 2024

#212 in Parser implementations

Download history 157/week @ 2024-09-21 31/week @ 2024-09-28 5/week @ 2024-10-05 326/week @ 2024-10-26 22/week @ 2024-11-02 2/week @ 2024-11-16 113/week @ 2024-11-23 30/week @ 2024-11-30 22/week @ 2024-12-07 121/week @ 2024-12-14 10/week @ 2024-12-21

155 downloads per month

MIT license

19KB
310 lines

Table of Contents↗️

tcping-rs

🛠️ tcping-rs: Rust (rs) TCP Ping (tcping) Utility for Port Reachability.


Usage

tcping <host:port> [-c count] [-t] [-e] [-j] [-o mode]

Where:

  • host:port is the host and port to ping
  • -c count specifies the number of times to ping the host (default: 4)
  • -t enables continuous pinging
  • -e exits immediately after a successful probe
  • -j calculates and displays jitter
  • -o mode sets the output mode (normal, json, csv)
  • -h displays help
  • -V displays version

Example

$ tcping github.com:443

Resolved address in 0.9340 ms
Probing 140.82.113.4:443/tcp - Port is open - time=12.7510ms
Probing 140.82.113.4:443/tcp - Port is open - time=12.4270ms
Probing 140.82.113.4:443/tcp - Port is open - time=11.4410ms
Probing 140.82.113.4:443/tcp - Port is open - time=12.7510ms

--- 140.82.113.4:443 tcping statistics ---
4 probes sent, 4 successful, 0.00% packet loss
Round-trip min/avg/max = 11.4410ms/12.3425ms/12.7510ms
Address resolved in 0.9340 ms

Installation

Download from Releases

Download the precompiled binaries from the Releases Page.

  • Navigate to the Releases section.
  • Download the appropriate binary for your operating system.
  • Extract the executable and place it in a directory included in your PATH.

Using Docker

Run tcping-rs using the Docker image:

docker run --rm docker.io/lvillis/tcping:latest <host:port> [options]

About

This tool allows you to measure the latency to a server using TCP. It is built with Rust and uses the clap library for command line argument parsing.

Special thanks

Jetbrains Logo

Thanks to Jetbrains for supporting this small open source project!

Dependencies

~3–11MB
~120K SLoC