I only just found out about this…

# Send data via TCP to host port 12201
echo "hello" >/dev/tcp/

# Send data via UDP to host port 12201
echo "hello" >/dev/udp/

Now is there a way to listen via the same /dev/tcp|udp end point?

1 thought on “Send data via UPD or TCP without Netcat on Linux/Mac

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.