No internet connection for Visual Studio Android Emulator No internet connection for Visual Studio Android Emulator android android

No internet connection for Visual Studio Android Emulator


It looks like Android is unable to acquire an IP address from DHCP.

In Hyper-V Manager (virtmgmt.msc), select the VM for the emulator profile you are trying to start and go to its Settings... (right click for context menu or see action pane on right side).

Under Hardware, make sure there are two virtual switches:

  1. Emulator Internal Network Adapter
  2. Emulator External Network Adapter

Emulator External Network Adapter must be listed as the second adapter -- the order matters. If they are ordered incorrectly, delete the External adapter and recreate it, giving it the same settings it had before. You can create it by clicking Add Hardware in the VM's hardware list.

Hyper-V Manager - VM Settings


I fixed it by setting the second network adapter to Default switch and not the physical network adapterScreen Grab.


Thought this might help someone out there. Mine had an internet connection, but suddenly it stopped connecting. I resolved it by restarting my emulator with factory settings.enter image description here