Nping in Termux – Network Packet Testing Tool

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 -y

Install Nmap, which includes Nping.

pkg install nmap -y

Nping 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 -h

Check the installed version.

nping -V

Send a basic probe to a domain.

nping scanme.nmap.org

Send a TCP probe.

nping --tcp scanme.nmap.org

Test a specific TCP port.

nping --tcp -p 80 scanme.nmap.org

Send an ICMP probe.

nping --icmp scanme.nmap.org

Send a UDP probe.

nping --udp -p 53 scanme.nmap.org

Send a specific number of probes.

nping --icmp -c 5 scanme.nmap.org

Set a delay between probes.

nping --icmp --delay 500ms scanme.nmap.org

Use traceroute mode.

nping --tcp --traceroute -p 80 scanme.nmap.org

Use IPv6.

nping -6 --icmp scanme.nmap.org

Increase the output details.

nping -v scanme.nmap.org

Hide sent packets from the output.

nping -H scanme.nmap.org

Use a custom network interface.

nping -e wlan0 scanme.nmap.org

TCP Probe Options

Nping provides several options for testing TCP connections.

Set a destination port.

nping --tcp -p 80 scanme.nmap.org

Set TCP flags.

nping --tcp -p 80 --flags SYN scanme.nmap.org

Set a source port.

nping --tcp -g 12345 -p 80 scanme.nmap.org

UDP 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.org

Set a custom source port.

nping --udp -g 12345 -p 53 scanme.nmap.org

ICMP Probe Options

ICMP mode can be used to test network reachability.

Send an ICMP probe.

nping --icmp scanme.nmap.org

Set an ICMP type.

nping --icmp --icmp-type 8 scanme.nmap.org

Set the number of probes.

nping --icmp -c 5 scanme.nmap.org

Nping Basic Commands

Check the help information.

nping --help

Check the version.

nping --version

Set the number of rounds.

nping -c 10 scanme.nmap.org

Set the packet sending rate.

nping --rate 2 scanme.nmap.org

Use quiet mode.

nping --quiet scanme.nmap.org

Display more detailed output.

nping -v4 scanme.nmap.org

Nping 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.

SHARE THIS POST: