I have a desktop pc with wifi connection.My ip address is 192.168.12.95 and gateway is 192.168.10.10 .But i am not getting internet connection in the android emulator.That is i can not able to acess internate.
I have also try with " emulator -avd wbut -http-proxy 192.168.10.10:3128 " this command.
But sometimes i get the connection in the emulator without doing anything.
Can someone please tell me how can i get internet connection in my android emulator ?
Click F8 key after starting emulator. F8 used for Turning network on / off.
Try this
In Eclipse:
Window>Preferences>Android>Launch
In the Default emulator options, put the value
-dns-server 8.8.8.8,8.8.4.4
If this does not work, check this post
How to set Internet options for Android emulator?
If your system has a internet access then you have to nothing to do to get internet access in emulator. Emulator get internet connection automatically if your system has.. Just check you emulator for AirplaneMode or hit url in android native browser to check internet connection..