During app development you may be interacting with local servers such as LAMP(Linux,Apache,MySQL,PHP). Every one knows how to interact with local server with computer. But weird thing is how to interact it using Android Device.

It is simple, go through steps below,

1) Get the ip address of your laptop / desktop by

$ sudo ifconfig

HINT : inet addr: 192.xxx.x.x is your ip address

2) Make sure your device has internet, and open any preferred browser in your android device, to start interacting with LAMP type address as below

http://192.xxx.x.x/test.php

NOTE : Make sure your device has Internet.

For more on LAMP server click here and here

Thats it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s