I have an application that connects to server for basic verification and fetching data.Web Service is in Java.
The problem is that i am not able to connect to the web service through Emulator as well as device via USB or Wifi.I tried via both application and browser.
Is it possible to do so in Android or else I will have to use live IP.
Exactly, you'd use 10.0.2.2 and 10.0.1.2 (I think) for the first two scenarios I mentioned. For the 3rd scenario you'd use whatever IP address the target server has.