PingPro is a command-line network ping tool written in Go. It supports multiple protocols including TCP, UDP, and ICMP, allowing you to test connectivity to a host and port with configurable options.
- Supports TCP, UDP, and ICMP ping types
- Configurable timeout per ping
- Configurable interval between pings
To install PingPro, you need to have Go installed on your system. Then you can build the project using:
go build -o pingpro main.goAlternatively, you can get the package using:
go get github.com/csubbdev/pingpro-
Build the executable as shown above.
-
Move the
pingpro.exefile to a directory of your choice, for example:C:\Tools\pingpro\ -
Add this directory to your system PATH environment variable:
- Open the Start menu and search for "Environment Variables".
- Click "Edit the system environment variables".
- In the System Properties window, click "Environment Variables".
- Under "System variables", find and select the "Path" variable, then click "Edit".
- Click "New" and add the path to the directory where you placed
pingpro.exe(e.g.,C:\Tools\pingpro\). - Click OK on all dialogs to apply the changes.
-
Open a new Command Prompt window and type
pingproto run the tool from anywhere.
- Build the executable:
go build -o pingpro main.go- Move the
pingprobinary to a directory in your PATH, for example:
sudo mv pingpro /usr/local/bin/- Make sure it's executable:
chmod +x /usr/local/bin/pingpro- Now you can use
pingprofrom any terminal.
To build pingpro for multiple operating systems and architectures, install gox:
go install github.com/mitchellh/gox@latestThen run:
gox -os="windows linux" -arch="amd64" -output="build/{{.OS}}_{{.Arch}}/pingpro"This will create builds for Windows and Linux in the build/ directory.
pingpro <host> <port> [flags]-t, --type: Ping type to use. Options aretcp,udp, oricmp. Default istcp.-o, --timeout: Timeout per ping in seconds. Default is 3 seconds.-i, --interval: Interval between pings in milliseconds. Default is 1000 ms.
Ping a host using TCP on port 80 with default settings:
pingpro example.com 80Ping a host using UDP on port 53 with a 5-second timeout output:
pingpro example.com 53 -t udp -o 5This project is licensed under the MIT License.
