简体   繁体   中英

How to access LAMP localhost in android device for testing?

I am developing a Wordpress site in Linux using LAMP environment. I want to test the look and feel of the site in a mobile device. I have an android device.

Is it possible to test my Linux localhost site in an android device using wifi or USB? If yes, how?

Using - Ubuntu 12.04 - XAMPP Linux 1.8.0 - Android 4.0

Note: Before you dismiss this question as possible duplicate, I checked the stackoverflow questions but nothing helped.

Open for editing!

If both your device and your LAMP setup are on the same.network, no problem. Just let the URL (on Android) be the IP- adress of your Site (for example http://192.168.0.5/yourwordpresssite )

You can also use an android emulator. The emulator has access to the loopback address via 10.0.2.2.

see: http://developer.android.com/tools/devices/emulator.html#emulato.networking

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