I'm working on a personal project on android where a client and server keep sharing each other's location through a TCP connection . it's working fine however as we know TCP connections break when you change IP address. How can I reopen the socket as soon as it closes?
is there any other connection type that I can use?
is it sufficient to change Ip from Dynamic to static?