Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

TCP/UDP with Bash

Published on

Updated on

The bash shell contains pseudo-devices to send packets with TCP/UDP. The pseudo files are formatted like the following:


To send a UDP packet to localhost:6300 containing the payload “Hello, World.”, we would run the following command:

echo "Hello, World." > /dev/udp/
Was this useful? Feel free to share: Hacker News Reddit Twitter
Reply via Email

Have you published a response to this? :