Home > database >  Can't connect to localhost from android emulator
Can't connect to localhost from android emulator

Time:06-04

Im running asp webapp on my local machine and am trying to access the same site from an android emulator.

I've tried changing the proxy settings to my local ip and 10.0.2.2 As well I've tried to connect directly to my local ip with still no luck.

Any input would be greatly appreciated;

CodePudding user response:

It can be really painful to get this working.

You have to open up fire walls, and config IIS express - and you don't have the full IIS GUI for setup. So, by default, when running from Visual Studio, to get external use of that same web site can be REALLY a pain - a HUGE pain.

Best bet would be to install the full edition of IIS on your computer - and not use IIS express.

There are some ideas and suggesting here on how to open up IIS Express.

Visual Studio 2017 - Giving remote users access to website in IIS Express

  • Related