Chatting using the ping command in Linux

Sumit Dhattarwal
1 min readJul 4, 2023

--

In Linux, the ping command is used to test the reachability and round-trip time (RTT) of a network host or IP address. It sends ICMP Echo Request packets to the specified destination and waits for ICMP Echo Reply packets in response. This is a commonly used tool to check network connectivity and measure network latency.

But we can also chat using the ping command in Linux. Let’s see how it is possible.

Step1. From the first device, we need to send the packet using the ping command:

ping -p [hexcode of message] [IPaddress of the other device]

Step2. From the other device, we need to capture the packets that the other device is sending and for that, we can use the command tcdump:

tcpdump -X

Step3. Now the captured packets have the message on the right side:

Hope the above method/process helped you to chat using the ping command.

If you have any queries feel free to reach me at sumitdhattarwal4444@gmail.com

--

--