How to connect to my http://localhost web server from Android emulator
P粉450079266
P粉450079266 2023-08-23 21:31:00
0
2
454

How to connect to a localhost web server at http://localhost or http://127.0.0.1 in the Android emulator page? < /p>

I've tried this but the emulator still accepts my request just like a Google search for localhost, or worse it says it wasn't found when my webserver is up and running page.

P粉450079266
P粉450079266

reply all (2)
P粉401901266

Use10.0.2.2as the default AVD and10.0.3.2as.

    P粉676588738

    Localhost refers to the device the code is running on, in this case the emulator.

    If you want to reference the computer running the Android emulator, use the IP address10.0.2.2.

    You can read more informationhere.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!