Access WebService localhost - Android Studio

1

I have a webservice that was made in ASP.NET in VisualStudio 2013, I'm running it locally (localhost), and I'm not able to access it in the Android Studio Android emulator, nor on my physical device (USB debugging) .

I tried to use IP 10.0.2.2 for the standard Android Studio emulator, and 10.0.3.2 for the Genymotion emulator, however I get an exception from java.io.FileNotFoundException.

Can anyone help me with this question?

    
asked by anonymous 30.11.2017 / 14:03

1 answer

2

If you use windows va to cmd and type ipconfig and then the ip that appears on your machine put in place of the local ip 10.0.2.2 your ip that found in linux and a similar process is that in the terminal and type ifconfig . Anything but talk!

    
01.12.2017 / 03:18