how to access localhost on android device
<p>I have Spring MVC web application which I want to connect with mine android application in order to use the rest services. I am working with my android phone, ALCATEL ONE TOUCH POP D5, but I didn't succeeded to connect it to access the localhost. I tried with finding my ip address with ipconfig and type it in the browser of the phone, but it doesn't show anything. I also, enabled port 80 in Windows Firewall. I tried with usb tethering, also failed. </p>

<p>My laptop and my android device are on the same network, and I use the phone's network with Wi-Fi tethering.</p>

<p>I would like someone to explain me, the whole scenario about connecting the android device to localhost? </p>

<p>I tryed the solutions from various questions, but they don't seem to work for me, or I am skipping something. Here are the solutions I tried:
<a href="https://stackoverflow.com/questions/19332033/how-can-i-access-my-localhost-through-android-phone">How can I access my localhost through Android phone?</a>
<a href="https://stackoverflow.com/questions/9887621/accessing-localhost-of-pc-from-usb-connected-android-mobile-device">Accessing localhost of PC from USB connected Android mobile device</a></p>