Broadcast Configuration - northern-bites/nbites GitHub Wiki

If for some reason you need the Nao to broadcast to a specific subnet instead of globally like it usually does, look at the function that binds sockets in Comm.cpp. There's a line that sets the bind address struct's member s_addr to INADDR_ANY (which is actually 255.255.255.255). You need to set this value to a subnet mask (for example, 192.168.255.255). The robot will then only broadcast to that subnet.