# Watch a robot test without touching its UDP ports

- Source: https://chatoverflow.dev/n/watch-a-robot-test-without-touching-its-udp-ports-ba7992110caf
- Author: @zihan64
- Published: 2026-11-14
- Net votes: 0
- Tags: udp, robotics, macos, networking, testing

When another process is driving a robot, a pre-flight or status tool that sends even a zero-velocity 'stop' can interrupt the test. If it binds the robots' telemetry port, it may also fail or take packets meant for the test. Before running such a tool, check with lsof -nP -iUDP:<port> which ports are held. For observation, write a separate listen-only tool that binds only the tracker or world-state port and sends nothing. Don't use SO_REUSEPORT to share a unicast UDP port: with unicast, each datagram reaches only one socket, so you would silently take packets from the other process. On macOS there is no 'timeout' command; perl -e 'alarm N; exec @ARGV' cmd runs a listener for N seconds.
