Android real-Machine debug access to local server (localhost) solutions

Source: Internet
Author: User

The Android system takes itself as a localhost! when connecting to LocalHost is his own.

Embarrassed, here fainted for a long time only to discover.

The online introduction of the simulator is connected to the local server, I try to change the link to http://10.0.2.2/still can not.
I am a real machine debugging, not a simulator, what can I do?

Workaround

My environment is to use the mobile phone via WiFi, and the local computer in the same LAN. Locate the local computer's IP, and the phone can access the IP directly.

If not within the LAN, you can only put the Web page can be used for external access to the place (such as the server)

Android real-Machine debug access to local server (localhost) solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.