Reputation: 170
My home Internet is down and I need to run some tests on my Android emulator. My MacBook Pro is connected to the Internet via my iPhone Hotspot using bluetooth. Connection is ok - not super fast. The Android emulator is running on my MacBook Pro. Unfortunately emulator cannot connect to Internet. Any tips on how I can get the emulator to detect the internet connection?
Upvotes: 4
Views: 1295
Reputation: 496
This method worked on my Macbook Pro 2019. I haven't tested it on windows though.
On Windows
Open Network and Sharing Center and click on current Connection Click on Properties Double Click on Internet Protocol Version 4 (TCP/IPv4) Set the Preferred and Alternate DNS servers as:
8.8.8.8
8.8.4.4
On Mac
Go to System Preferences > Network > Advanced... > DNS Delete whatever entries you have there and add these two entries:
8.8.8.8
8.8.4.4
Edit:
In addition to the previous steps a wipe of the android emulator and cold boot might be required to get things working.
Upvotes: 17
Reputation: 3497
2024-10-12, on Mac Sequoia 15.0,
Select System Settings - Network - Your tethering wifi - Details,
Then select DNS on the left menu, click +
to add DNS.
After that, add 8.8.8.8
and 8.8.4.4
to the DNS servers.
Upvotes: 0