Shreds destination check

A shreds destination is a public IPv4 address and a UDP port on your own server. Delivery starts after you prove you own it: the gateway sends one verification packet to that port, and you paste the token it carries into your dashboard.

  1. Allow inbound UDP on the port you chose.
  2. Add the destination (IP and port) in the dashboard.
  3. Run the listener below on that server. It prints the verification line and stops.
  4. Copy the SHREDCAST-VERIFY <destination id> <token> line into the dashboard to verify.

Use the port you chose in place of 20000.

bash
python3 - <<'PY'
import socket
PORT = 20000
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(("0.0.0.0", PORT))
print(f"Waiting for verification packet on UDP {PORT}...", flush=True)
while True:
    data, sender = sock.recvfrom(65535)
    message = data.decode("utf-8", errors="ignore").strip()
    if message.startswith("SHREDCAST-VERIFY "):
        print(message, flush=True)
        break
PY

Once verified, point your receiver at the same port. See Shredstream setup for the full set-up, Firewall and NAT for network rules and Troubleshooting if nothing arrives.