Android Embedded Browser Cant Connect To Server On LAN
I've got a simple android app with an embeded browser. Here it is: WebView webview = new WebView(this); setContentView(webview); webview.loadUrl('192.168.1.106'); I'm running a
Solution 1:
You have to specify http://
even when IP is used.
webview.loadUrl("http://192.168.1.106");
To force the webpage to always load into WebView (not external browser), add this line before the loadUrl
call.
viewer.setWebViewClient(new WebViewClient());
See this answer: link
Solution 2:
webview.loadUrl("http://192.168.1.106:8080") put your http port to the end of the ip address
Post a Comment for "Android Embedded Browser Cant Connect To Server On LAN"