Page 1 of 1

Changing internet from wifi to phones internet

Posted: 14 Oct 2020, 13:57
by ekrem5353
Hi,

When users are online, is there a way to change wifi without getting disconnected? For example when user is playing game with wifi turns down wifi and User's cell phone uses its own internet. is there a way to going from one to other without getting disconnected?

Thanks

Re: Changing internet from wifi to phones internet

Posted: 14 Oct 2020, 17:02
by Lapo
Hi,
to answer you I'll quote a post from a similar question on Stack Exchange:

A TCP connection cannot be kept alive during a network change, since you get a new IP address, causing all connections being terminated.

TCP builds upon IP to get the data delivered. If you change networks you also change your public IP address which is used by the TCP connection to let TuneIn deliver data to you. This invalidates the current connection and forces you to establish a new one.

Source:
https://android.stackexchange.com/quest ... k-provider

If you want to learn more about this topic we wrote two extensive articles on the subject:
https://smartfoxserver.com/blog/what-re ... tworkwifi/
https://smartfoxserver.com/blog/handlin ... e-devices/

hope it helps