Skip to content

Instantly share code, notes, and snippets.

@thaibert
Last active March 16, 2026 11:54
Show Gist options
  • Select an option

  • Save thaibert/2353403bd43684e1f92150bbef6ba3d8 to your computer and use it in GitHub Desktop.

Select an option

Save thaibert/2353403bd43684e1f92150bbef6ba3d8 to your computer and use it in GitHub Desktop.
Send a UDP broadcast packet and listen for replies (e.g. for debugging Jellyfin client discovery)
In two shells:
```bash
# shell 1
socat - udp-listen:1234,reuseaddr
```
```bash
# shell 2
printf "Who is JellyfinServer?" | socat - udp:255.255.255.255:7359,broadcast,sp=1234,reuseaddr
```
This prints something of this sort:
```json
{"Address":"http://10.42.0.1:8096","Id":"[a 16-byte hex id]","Name":"jellyfin-server-76f6888cf4-lt9k2","EndpointAddress":null}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment