I‘m writing an application that sends information, using UDP packets, to the server on the internet and then receives data same way. It seems to work fine from behind NAT but I’m wondering about more complex cases...
What if client is on a LAN, with multiple parallel routes outside, that run NAT? In this case my server could receive traffic from same client from many different addresses / endpoints but communication should still work? Or is this dependent on router software and original mapping can age out breaking connection? Maybe I should keep track of all addresses I’m getting traffic from and send out to the one most active?
I assume I’ll need some identification token in all my packets to get this working properly since I can not rely on IP address?