I have seen applications send a packet through UDP to an IP on some port and receiving a response. Which port does the response go to? (Btw, how can the router know that the
When you create the UDP socket, you must bind it to a port number. If you dont, the operating system will assign an ephemeral port.
The application on the other side must know of this port. When replies are sent back, your router might not know how to route. There are 2 ways to resolve this problem