Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My computer is connected over a VPN, Android emulator can't access local intranet sites

I work remotely and connect to my office through a VPN client. Every program on my computer can access the office network, browsers can connect to intranet sites (e.g. http://myportal/). When I open an Android emulator up and open the browser, it cannot access any of the intranet sites.

Any idea why, or how to get it to do this?

EDIT: It seems to be able to access it via the IP just fine, so it looks like a DNS issue. Any idea how to get the emulator to use the DNS address my connection is set up to use?

EDIT 2: I tried launching the emulator with the DNS tied to my VPN connection and that did not seem to help emulator -avd Default -dns-server 192.16.200.100,192.16.4.2

like image 579
cowsay Avatar asked Oct 02 '14 16:10

cowsay


People also ask

Why internet is not working when VPN is connected in Android?

If your VPN software is not working properly, you can do several things: check your network settings, change your server, make sure the right ports are opened, disable the firewall, and reinstall your VPN software. If none of the below methods are working, it's time to contact your VPN provider.

Can Connect VPN but Cannot access network resources?

One of the most common reasons why the VPN is connected but not working is a DNS configuration issue. It may also occur if you configure the VPN connection to use the default gateway on the remote network. Browse the web from multiple devices with industry-standard security protocols.

How do I get internet permission on Android emulator?

Go to your Android\Sdk\emulator folder and open command prompt. Type emulator -list-avds to see available emulator names. Type emulator -avd name-of-your-device -netdelay none -netspeed full -dns-server 8.8. 8.8 command and press enter.

Can I use VPN in Android emulator?

The good news is that anybody can use a VPN for BlueStacks to gain online privacy while using apps from the Google Play store on a Mac or Windows PC. A VPN is an online privacy tool that encrypts your data and tunnels it to a remote server location.


1 Answers

Settings > Network & internet > Private DNS > Off

like image 200
Tatsuya Fujisaki Avatar answered Nov 16 '22 02:11

Tatsuya Fujisaki