How to fix an Android emulator wifi connected with no internet? So I am a React Native developer and when I am going to run my Android application I have noticed that the emulator’s wifi is connected with no internet even if there is wifi in my physical device(Laptop). So I have found two main solutions for this issue. Today I am going to explain how we can fix the Android Emulator Wifi not working issue.
So there are two methods to get this Android emulator wifi connected with no internet issue fixed.
- Cold boot on the emulator
- Change DNS settings on the emulator
If you have this issue your emulator looks like this.
Cold boot Android emulator to fix Android emulator wifi connected with no internet
Step 1
Disable Wifi from your laptop or PC.
Step 2
Switch off/Quit your emulator
Step 3
Do a cold boot on the emulator. So here you need to navigate to the Virtual device manager to do that. Go to the emulator that you want to launch. On Each emulator there you can see 3 dots vertically aligned and click on that. There you will see the cold boot option. given below is a reference image to that.
Step 4
Then after rebooting with the laptop WiFi was disabled the emulator’s wifi is connected with no internet. Because we already disabled laptop Wifi. After that Enable the laptop Wifi. You will able to see that the Android emulator wifi is connected successfully.
This is a simple way can do to enable wifi in emulator Android.
Change DNS settings on the emulator
For this fix also it doesn’t matter if you are using Mac or Windows PC. We need to do some configuration changes to the emulator settings. Let’s go step by step.
If you are using Android Studio above or equal to 4.1.2 this Android emulator wifi not connected issue can happen. The actual problem is the DNS settings in the emulator. So we have to change DNS settings within the emulator. Here are the steps to fix the issue. The following steps are done with an emulator running Android 12. Other versions also will be similar:
Step 1
Firstly open the extended controls window that will be opened from the right bottom of the emulator. Then click the settings tab. Then click on Proxy at the top. Make sure the Use Android Studio Http proxy is checked. We need to check this because sometimes in other solutions this can be unchecked and we have to make sure these Android emulator proxy settings are changed back to it’s default settings. If wasn’t checked you have to check this and restart the emulator before proceeding to the next step. If your version does not show the proxy settings tab then you can skip this step. Below is the flow with images.
Step 2
Then Navigate to the wifi connection setting within the Android emulator. From the Home screen -> Android emulator settings -> Network & Internet -> Internet -> Android Wifi(Click on the gear icon) -> Scroll down -> See the network details.
Step 3
Check what is in the Android emulator DNS. If it is NOT 8.8.8.8 do this. In the network details on the Android emulator wifi setting mark down the IP address and the Gateway address. We need those IP addresses to fill in as static in IP settings.
Step 4
Click on the pencil icon in the network details screen. Then you will see a popup with Advanced options. Click on that and the dropdown will open. There you can see the IP settings. Click on that. Then select Static in that. Then type the IP Address and the Gateway that we have written down in Step 3. Make sure to fill DNS 1 as 8.8.8.8 and DNS 2 as 8.8.4.4. Normally DNS 1 and DNS 2 are auto-filled. If not filled you can type.
After closing the emulator and starting the emulator with the cold boot option. Now you can see the wifi is connected properly.
From one of the above two methods, you can fix the issue with Android Emulator Wifi Connected with No Internet. I personally recommend the second method because, in the first method, we have to do that every time the Android emulator opens. But the second method is a permanent solution for this issue.
That’s Pretty much for this issue. If you have any questions or queries please add a comment or contact us via mail at [email protected].
1 comment(s)
Jaimie Moreau
As someone still navigating this field, I find your posts really helpful. My site is YH6 and I'd be happy to have some experts about […] Read MoreAs someone still navigating this field, I find your posts really helpful. My site is YH6 and I'd be happy to have some experts about Airport Transfer like you check it and provide some feedback. Read Less