net::ERR_CONNECTION_REFUSED (http://localhost:8080/)

I am facing this problem on a device with Android 6, that fix you mentioned you are using Ionic 4, right?
How about the android platform version? What is it?

Mine is 6.3.0 (not sure why).

It’s just a very simple project with Ionic 4, with a map only.

Can you post your “ionic info” output, and also describe the steps to get the error.

Sure Ii can,

Ionic Info:

Ionic:

   Ionic CLI                     : 5.2.2 (/Users/francisco/.npm-packages/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 7.1.0
   Cordova Platforms : android 6.3.0, browser 5.0.4, ios 5.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 5 other plugins)

Utility:

   cordova-res : 0.5.1 (update available: 0.6.0)
   native-run  : 0.2.7 (update available: 0.2.8)

System:

   Android SDK Tools : 26.1.1 (/Users/francisco/Library/Android/sdk)
   ios-deploy        : 2.0.0
   ios-sim           : 7.0.0
   NodeJS            : v8.11.3 (/usr/local/bin/node)
   npm               : 6.10.1
   OS                : macOS Mojave
   Xcode             : Xcode 10.2.1 Build version 10E1001
> cordova plugin ls
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

Running on an Android device (just the same way I always did) in debug mode:
% ionic cordova run android -l -c --device --verbose --no-native-run

In my case it shows:
net::ERR_CONNECTION_REFUSED (http://localhost:8100/)

This is a very simple project in Ionic4, but I also have another one in Ionic3 that’s happening the same problem.

The device is a Samsung S5 with Android 6.0 (SM-G900M)

BTW, thanks for replying!

hi Sir @IonicGeoff i am getting Same problem in ionic4 if create any app.

Hmmm, sorry my experience is from a few months back and is probably no longer relevant. Try doing a Google search for whatever the error message is?

Thanks for your reply. ok.

Exactly! Can u solve it?

What do you want to know ? My workaround is to run your app with livereload.

I need that run without livereload