From 60c4870491c91a306e0d71a34e624117ee73b9f8 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 25 Jan 2025 16:44:25 +0200 Subject: [PATCH] socat: add multicast example (#15604) --- pages/common/socat.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/socat.md b/pages/common/socat.md index c01ea6deef..79ddfa8ac6 100644 --- a/pages/common/socat.md +++ b/pages/common/socat.md @@ -18,3 +18,11 @@ - Forward incoming data of a local port to another host and port: `sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80` + +- Send data with multicast routing scheme: + +`{{echo "Hello Multicast"}} | socat - UDP4-DATAGRAM:{{224.0.0.1}}:{{5000}}` + +- Receive data from a multicast: + +`socat - UDP4-RECVFROM:{{5000}}`