A feature-rich ping utility with support for multiple targets, statistics, and various display options.
- Multiple target support
- Configurable packet sizes
- Detailed statistics (packet loss, RTT, jitter)
- Verbose mode with header information
- DNS resolution display
- Quiet mode
- Custom timeout settings
- Install required dependencies:
sudo apt-get update
sudo apt-get install gcc make libc6-dev- Compile the program:
gcc fping.c -o fping -lm- Install the man page:
sudo mkdir -p /usr/local/share/man/man1
sudo cp fping.1 /usr/local/share/man/man1/
sudo mandb-
Install MinGW or Cygwin:
- MinGW: Download and install from MinGW website
- Cygwin: Download and install from Cygwin website
-
Using MinGW:
gcc fping.c -o fping.exe -lws2_32 -lm- Using Cygwin:
gcc fping.c -o fping.exe -lmNote: The man page is not typically used on Windows systems.
# Basic usage
sudo ./fping google.com
# Multiple targets with verbose output
sudo ./fping -v google.com facebook.com
# Quiet mode with custom packet size
sudo ./fping -q -s 100 google.com
# Show DNS resolution with custom timeout
sudo ./fping -d -t 2000 google.com# Run as Administrator
fping.exe google.com
# Multiple targets
fping.exe -v google.com facebook.com-v: Verbose output-q: Quiet output (statistics only)-d: Show DNS resolution-s size: Set packet size (8-65527 bytes)-t ms: Set timeout (100-60000 ms)
# After installation
man fping
# Direct from file
man ./fping.1- The manual content can be viewed in the source file
fping.1 - Or access this README for quick reference
- GCC compiler
- Root privileges for raw sockets
- Math library (libm)
- MinGW or Cygwin
- Administrator privileges
- WinSock2 library (ws2_32)
-
"Operation not permitted":
- Run with sudo/administrator privileges
-
Compilation errors:
- Ensure all required libraries are installed
- Check if math library is linked (-lm)
-
Man page not found:
- Run
sudo mandbafter installation - Check if man page is in correct directory
- Run