Sukumar Bera
Sukumar Bera

Reputation: 59

Getting internet connection in android emulator

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 ?

Upvotes: 2

Views: 9614

Answers (3)

Neetesh
Neetesh

Reputation: 917

Click F8 key after starting emulator. F8 used for Turning network on / off.

Upvotes: 5

Shubhayu
Shubhayu

Reputation: 13552

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?

Upvotes: 2

user370305
user370305

Reputation: 109237

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..

Upvotes: 0

Related Questions