I'm currently developing my multiplayer game using smartfox server.
It's a fast pace game, so I make use of the UDP protocol for better performance.
It works well almost all the time.
Though there are some times, I got the error of
Discard UDP packet from <IP>:<P1>, reason: Sender UDP Port doesn't match current session port
or some sort.
I searched and was able to fix it permanently with the allowClientUdpPortChanges config
But recently, I tested my game from a coffee shop and get a similar error of
Discard UDP packet from <IP1>:<P>, reason: Sender IP doesn't match TCP session address: <IP1> != <IP2>
I tried to find the root of error and found out that it's because of the coffee shop internet. They seems to have their internet provided by 2 ISPs, and I'm not sure how they configure their network, but when connecting to their network, my public IP changed randomly between 2 IPs (IP1 and IP2 on the error message) on each time of connecting. I guess this is the reason the IP also changed on TCP and UDP connection to my game, and cause the above error
But because this error is a client error with a coffee shop network, it's not something like my server is behind a proxy server or something similar like in other posts. So I believe that if my game is published, the error will happen somewhere else, with similar network. And I suppose the game will lose some users because of it.
I did try to search for a solution of this error, or even just workaround, but couldn't found any.
So I post this here with the hope that you could help me with some clues, to fix or workaround.
Something I could easily modify is good. But if it's not possible, even if the fix is in the library itself, I will try it too.
But please help me with some clues.
Thank you in advance