Reputation: 153
I'm building a server that use UDP protocol to send and receive UDP message to and from clients. Clients continuously "throw" UDP message to server without server responding anything, when the server "think" that it had received enough UDP messages from certain client, it will send a signal message (UDP message) back to THE client (this time, client acts as an server) to prevent it from sending any more messages. The problem here is that: The server can receive UDP messages from clients. But clients (which is behind LAN network) can't receive UDP messages from server. How can I send UDP messages to a client that is behind LAN network?
Upvotes: 1
Views: 368
Reputation: 199
That depends on the router, Some would set a route for some time when the datagram is 1st send by the LAN member to the server, the router might take note as the udp packet is part of a 'UDP Session' and route it accordingly. The other way I'd try is utilizing UPnP to forward the correct port (I.E. the port that the client machine is using) to the LAN member.
Upvotes: 1