Monday, November 11, 2013

A Simple method to connect your Android phone with PC localhost via Wi-Fi

Especially when we are developing Android applications, we may need to connect our Android application with our personal computer's local host for the testing purposes. The most convenient method to connect both devices is using Wi-Fi. But it is some what difficult to connect Android phones with a Wi-Fi enabled PC via a Ad-Hoc connection without using a separate software.
There is a more simple way to connect your Android phone and PC via Wi-Fi. To use that method your phone need to have the option called "Portable Hotspot" which is used to share your phone's internet connection with other devices via Wi-Fi.
Turn on the "Portable Hotspot" and connect your PC via Wi-Fi. Then open the Command Prompt of your PC and check the "Wireless LAN adapter wireless network connection" information using "ipconfig" command. Then identify the IPv4 address of it.
By using that IP address you can connect with PC's local-host through your Android phone. To check whether phone can access or not, just type the PC's IP address at your phone's web browser's address bar. If the connection is established successfully, you will be able to see welcome screen of your local-host.
Now, it is obvious that you can use that IP with your android applications to connect them with the PC's localhost.     

No comments:

Post a Comment