I have followed below steps to get it done
- Disconnect network cables on laptop or turn off wifi.
- Turn off wifi on android device
- Connect android phone to laptop via USB cable
- Turn on "USB Tethering" in the android settings menu -> Tethering and portable hotspot
- Get the IP of your computer. (open command prompt and type "ipconfig" then look for the IP )
- Open a browser on the laptop using the IP address found instead of localhost to test. i.e. http://192.168.x.x/abc/services/v1/
- Now, type the same URL in android browser
It might be very helpful when you wants to test some webservice on phone.