Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Android ERR_CONNECTION_REFUSED when running http://127.0.0.1

$
0
0

@timclicker wrote:

Hi - I am running an ionic 4 app and need to change my server url to a local ip address in order for a widget to work (intercom requires app to be run on ip address rather than localhost).

So, I added the following to my capacitor.config.json.

  "server": {
    "url": "http://127.0.0.1"
  }

This works for iOS (when I use capacitor://127.0.0.1) but for android (on the emulator), I get ERR_CONNECTION_REFUSED when loading the app.

Any help would be greatly appreciated. Have tried adding the below to my config.xml but that did not work.

<allow-navigation href="http://127.0.0.1/*"/>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>