简体   繁体   中英

I'm trying to access to my localhost server from my Android Emulator and i'm getting an ECONNREFUSED error

I try to get into the localhost server from android simulator and I can not. What should I do to get in?

Use the IP address 10.0.2.2 instead of localhost

Further Read This https://developer.android.com/studio/run/emulator-networking.html

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