title: I get "Application Error net::ERR_CONNECTION_REFUSED (http://localhost/) when compiling for Release Android 8 on Ionic Framework Ionic
body: <p>I get "Application Error net::ERR_CONNECTION_REFUSED (<a href="http://localhost/" rel="nofollow noreferrer">http://localhost/</a>) when trying to run an app on an Android 8 actual device.  It was compiled on Ionic Framework Ionic, Release type.</p>
  
  <p>I've tried everything I can find on the Internet.  Anybody have any other ideas?</p>
  
  <pre><code>Ionic:
  
     Ionic CLI          : 5.1.0 (C:\Users\me\AppData\Roaming\npm\node_modules\ionic)
     Ionic Framework    : ionic-angular 3.9.8
     @ionic/app-scripts : 3.2.4
  
  Cordova:
  
     Cordova CLI       : not installed
     Cordova Platforms : none
     Cordova Plugins   : cordova-plugin-ionic 4.1.7, cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1, (and 15 other plugins)
  
  Utility:
  
     cordova-res : 0.3.0
     native-run  : 0.2.6
  
  System:
  
     NodeJS : v8.10.0 (c:\Program Files\nodejs\node.exe)
     npm    : 6.11.3
     OS     : Windows 10
  </code></pre>
  
  <p>These are my package.json dependencies:</p>
  
  <pre><code>  "dependencies": {
      "@angular/animations": "~7.2.15",
      "@angular/common": "~7.2.15",
      "@angular/compiler": "~7.2.15",
      "@angular/compiler-cli": "~7.2.15",
      "@angular/core": "~7.2.15",
      "@angular/forms": "~7.2.15",
      "@angular/http": "~7.2.15",
      "@angular/platform-browser": "~7.2.15",
      "@angular/platform-browser-dynamic": "~7.2.15",
      "@ionic-native/background-mode": "5.14.0",
      "@ionic-native/badge": "^5.14.0",
      "@ionic-native/browser-tab": "5.14.0",
      "@ionic-native/calendar": "5.14.0",
      "@ionic-native/core": "^5.14.0",
      "@ionic-native/http": "5.14.0",
      "@ionic-native/in-app-browser": "5.14.0",
      "@ionic-native/network": "5.14.0",
      "@ionic-native/onesignal": "5.14.0",
      "@ionic-native/pro": "5.14.0",
      "@ionic-native/splash-screen": "5.14.0",
      "@ionic-native/status-bar": "5.14.0",
      "@ionic/pro": "^2.0.4",
      "@ionic/storage": "2.2.0",
      "@reactivex/rxjs": "6.5.3",
      "@vimeo/player": "2.10.0",
      "android-versions": "1.5.0",
      "cordova-android": "^7.0.0",
      "cordova-ios": "5.0.1",
      "cordova-plugin-add-swift-support": "2.0.2",
      "cordova-plugin-badge": "^0.8.8",
      "cordova-plugin-browsertab": "0.2.0",
      "cordova-plugin-calendar": "5.1.4",
      "cordova-plugin-compat": "1.2.0",
      "cordova-plugin-device": "2.0.3",
      "cordova-plugin-file": "^6.0.2",
      "cordova-plugin-file-transfer": "^1.7.1",
      "cordova-plugin-inappbrowser": "3.1.0",
      "cordova-plugin-ionic": "^5.4.4",
      "cordova-plugin-ionic-keyboard": "2.2.0",
      "cordova-plugin-ionic-webview": "^1.2.1",
      "cordova-plugin-splashscreen": "^5.0.3",
      "cordova-plugin-statusbar": "2.4.3",
      "cordova-plugin-whitelist": "1.3.4",
      "if-env": "^1.0.4",
      "ionic-angular": "3.9.8",
      "ionicons": "4.6.3",
      "npm-gui": "^2.1.0",
      "npm-install-peers": "^1.2.1",
      "onesignal-cordova-plugin": "^2.6.0",
      "promise-polyfill": "^8.1.3",
      "rxjs": "^6.5.3",
      "rxjs-compat": "^6.5.3",
      "sw-toolbox": "3.6.0",
      "zone.js": "^0.8.29"
    },
  </code></pre>