Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Failed to load resource: net::ERR_CONNECTION_REFUSED #37

Closed
ghost opened this issue Apr 25, 2017 · 6 comments
Closed

Android: Failed to load resource: net::ERR_CONNECTION_REFUSED #37

ghost opened this issue Apr 25, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 25, 2017

Hi,

I have some problems with the "livereload" function under android.
First I´ve created a new project, added platforms and tried to run it:

1: cordova run browser -- --lr ----> Everyhing works fine, got directed to 127.0.0.1:8081

2: cordova run android -- --lr ---> I got a connection error.
screenshot_20170425-084301

Will i have to do some additional configurations (webpack.config.js) ????

Thx in advance ....

@centrual
Copy link
Collaborator

centrual commented Apr 25, 2017

Hello @SgtPepper27

It's happening to me too. The problem about webpack-dev-server's last version. It's webpack-dev-server bug. You can track the bug from webpack/webpack-dev-server#882

Also, your problem can be about antivirus or system firewall. Please check firewall configurations.

If you are using emulator, problem can be related with emulator too.

Have a great day!

@centrual
Copy link
Collaborator

centrual commented Apr 25, 2017

Hello again @SgtPepper27

I updated the template to version 1.1.0. Please use the latest version. I'm waiting your response for close the issue.

Have a great day!

@ghost
Copy link
Author

ghost commented Apr 25, 2017

Perfect, thanks a lot !!

@centrual
Copy link
Collaborator

Your welcome @SgtPepper27

Have a great day!

@sunflowerlb
Copy link

sunflowerlb commented Jul 2, 2017

I also have this problem . @centrual @SgtPepper27 Are you solved?

@u01jmg3
Copy link
Contributor

u01jmg3 commented Aug 19, 2017

@centrual: I too am facing this issue when live reloading to an Android phone or emulator.

Are there particular Webpack config settings to fix this issue? I am using the latest version of this template and webpack-dev-server but still getting a connection error.

Would greatly appreciate your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants