简体   繁体   中英

Can't connect to localhost from android emulator

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;

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM