ionic-team / vscode-ionic

Visual Studio Code Ionic Extension
Other
11 stars 1 forks source link

Error while using Run: Android while having multiple network interfaces #181

Closed DiegoBranco closed 2 months ago

DiegoBranco commented 2 months ago

I am trying to run my project in an android device (not an emulator) While trying to use the Run: Android button i get the following error:

[ERROR] Multiple network interfaces detected! You must select an external-facing IP for the dev server that your device or emulator has access to with the --address option.

How can i set this --address option? i don't see this in the options. I tried using the internal address option in settings, but this makes the program route to 'localhost' instead of my computer's IP.

dtarnawsky commented 2 months ago

If you have more than one IP Address you wil be asked to choose the external IP address when you run for Android (as shown below):

image

If you ignore this choice then you will get this error.

DiegoBranco commented 2 months ago

I did that, but i got the error regardless when it finally deployed. I ended up disabling one of the network interface (it was the linux subsystem one) and the problem fixed itself.

dtarnawsky commented 2 months ago

A specific IP address is now used for run's when live reload is enabled. Hopefully this should fix the issue (it did for me after adding multiple IPs to my mac).