in reply to UDP server
Please don't set a LocalAddr. This is a classic mistake. Perhaps this isn't true on all systems, but on most systems I've run into, setting the LocalAddr will prevent packets from getting to you unless the client used that address to try to reach you. So a LocalAddr of 'localhost' means that you won't receive any packets unless they came from the machine that you run the server on (because that is the only source from which packets addressed to 'localhost' could reach the server). Leave the LocalAddr off and it will default to match any local address which is almost always what you want for a server.
|
|---|