A simple, fast TCP ping utility written in Go. This is a modern but simple rewrite of the classic paping tool.
- Ping a TCP port on any host, similar to ICMP ping but for TCP
- Shows per-ping response times and statistics (min/max/avg/packet loss)
- Customizable timeout and count options
- Clone the repository:
git clone https://github.com/yourusername/gopaping.git cd gopaping - Download dependencies:
go get . - Build:
go build -o gopaping main.go
./gopaping --count N --timeout SECONDS <host> <port>
--count NNumber of pings to send (0 for infinite)--timeout SECTimeout for each ping in seconds (default: 2)<host>Hostname or IP address to ping<port>TCP port number to ping
Example:
./gopaping 1.1.1.1 80
MIT License. See LICENSE for details.