user3091530
user3091530

Reputation: 630

WebView Error on net::ERR_CONNECTION_REFUSED

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.

Upvotes: 9

Views: 24277

Answers (1)

Durai Amuthan.H
Durai Amuthan.H

Reputation: 32320

There is

http://www.ipchicken.com/

But there is no

https://www.ipchicken.com/

enter image description here

Wrong URL is the problem here

Upvotes: 5

Related Questions