Nping is a network testing tool that comes with the Nmap project. It can send different types of network packets and show the responses in the terminal. You can use Nping to test connectivity, check ports, measure response times, and learn how different network protocols work. Nping supports TCP, UDP, ICMP, ARP, and traceroute modes.
Here’s what you can do with Nping in Termux:
- Test network connectivity.
- Send TCP, UDP, and ICMP probes.
- Check specific ports.
- Use traceroute mode.
- Set packet count and delay.
- View sent and received packets.
- Test IPv4 and IPv6 connections.
- Use custom packet payloads.
Install Nping in Termux
Below are the simple commands to install Nping in Termux. Copy and run the command one by one to install the tool.
Update Termux packages.
pkg update && pkg upgrade -yInstall Nmap, which includes Nping.
pkg install nmap -yNping is now installed and ready to use.
Use Nping in Termux
After installing Nping, you can use different commands to test network connections and send different types of probes.
Note: Some Nping features may require root access or additional permissions on Android.
Check the help menu.
nping -hCheck the installed version.
nping -VSend a basic probe to a domain.
nping scanme.nmap.orgSend a TCP probe.
nping --tcp scanme.nmap.orgTest a specific TCP port.
nping --tcp -p 80 scanme.nmap.orgSend an ICMP probe.
nping --icmp scanme.nmap.orgSend a UDP probe.
nping --udp -p 53 scanme.nmap.orgSend a specific number of probes.
nping --icmp -c 5 scanme.nmap.orgSet a delay between probes.
nping --icmp --delay 500ms scanme.nmap.orgUse traceroute mode.
nping --tcp --traceroute -p 80 scanme.nmap.orgUse IPv6.
nping -6 --icmp scanme.nmap.orgIncrease the output details.
nping -v scanme.nmap.orgHide sent packets from the output.
nping -H scanme.nmap.orgUse a custom network interface.
nping -e wlan0 scanme.nmap.orgTCP Probe Options
Nping provides several options for testing TCP connections.
Set a destination port.
nping --tcp -p 80 scanme.nmap.orgSet TCP flags.
nping --tcp -p 80 --flags SYN scanme.nmap.orgSet a source port.
nping --tcp -g 12345 -p 80 scanme.nmap.orgUDP Probe Options
You can also use Nping to send UDP probes to a specific port.
Test a UDP port.
nping --udp -p 53 scanme.nmap.orgSet a custom source port.
nping --udp -g 12345 -p 53 scanme.nmap.orgICMP Probe Options
ICMP mode can be used to test network reachability.
Send an ICMP probe.
nping --icmp scanme.nmap.orgSet an ICMP type.
nping --icmp --icmp-type 8 scanme.nmap.orgSet the number of probes.
nping --icmp -c 5 scanme.nmap.orgNping Basic Commands
Check the help information.
nping --helpCheck the version.
nping --versionSet the number of rounds.
nping -c 10 scanme.nmap.orgSet the packet sending rate.
nping --rate 2 scanme.nmap.orgUse quiet mode.
nping --quiet scanme.nmap.orgDisplay more detailed output.
nping -v4 scanme.nmap.orgNping has many more options for controlling packet types, timing, network interfaces, and output. You can use nping -h to view the available options.
End Note
Nping is a simple tool for checking network connections and testing different types of packets. It is easy to use in Termux and gives you a simple way to explore network testing commands. You can try its different options to understand how network probes work.

