WebView Error on net::ERR_CONNECTION_REFUSED

user3091530 picture user3091530 · Feb 12, 2015 · Viewed 18.5k times · Source

enter image description here

This is the code snippet that I use

final WebView webVu=(WebView)findViewById(R.id.webView1);
webVu.loadUrl("someURL");
webVu.getSettings().setJavaScriptEnabled(true);

I tried so many solutions like setting the correct date time and all on AVD.

Giving internet permissin in manifest

<uses-permission android:name="android.permission.INTERNET" />

But nothing worked so far.

Answer

Durai Amuthan.H picture Durai Amuthan.H · Feb 12, 2015

There is

http://www.ipchicken.com/

But there is no

https://www.ipchicken.com/

enter image description here

Wrong URL is the problem here