
Click the pencil icon on the top to edit the Network details.We need those IP addresses to fill in as static. Write down (or remember) the IP address and Gateway address displayed there in the network settings. If it is NOT 8.8.8.8, follow this to fix. Navigate to the WiFi connection settings within the emulator: Home Screen -> Swipe up -> Settings -> Network & Internet -> WiFi AndroidWifi -> click gear icon -> click Advanced dropdown near bottom of screen -> Swipe up to view to view Network Details.If it wasn't already checked, restart the emulator before proceeding Step 2 However, on the latest versions, it works better to keep this checked. I emphasis this because many of the previous solutions said to uncheck this. Click on Proxy at the top and make sure Use Android Studio Http proxy settings IS CHECKED. Open the Extended controls dialog that opens up to the right of the emulator.The following steps are for an emulator running Android 11. You have to change the DNS settings within the Emulator. It no longer works to just change the DNS Servers on your local PC. The problem is the DNS settings on the Emulator. It also allows a direct full ethernet speed connection between the two Macs connected in this fashion.It seems the previous answers to this problem no longer work in 2021 (Using Android Studio 4.1.2). This sharing system generates an IP address for the Mac with which its connection is shared, and manages relaying data to and from the internet for that other Mac. Apple warns you about the potential of network nonsense.Check the Internet Sharing box to start sharing.

(You may see more than one listed depending on the interfaces on your computer.)

The warning alerts you to the potential of disrupting your network.
