How to detect IP address change?
<p>My app uses a native browser (webview), which is used to browse a certain website. While browsing the website, if the user switches from mobile data(2G, 3G) to wifi or vice-versa, there is a change in IP. When that happens the browser stops receiving any data from the server (website).</p>

<p>Does anyone know how to handle this situation. I was thinking of somehow detecting this IP change and re-establishing a connection with the server. Would this be a good solution. If yes, then how do I re-establish the connection between the native browser and the server?</p>

<p>Any help would be hugely appreciated. Thanks in advance</p>
