Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to VPN in Genymotion Android

I'm trying to Configure and Connect to VPN in Genymotion Virutal Device, I can configure VPN connection in the Virtual Device but unable to Connect, No error showing.

I used same settings in my PC and Real Android Devices, Its working fine in the device and PC.

I think Its problem with VirtualBox, But I don't know how to resolve it

System Details:

  • OS: Linux Mint 32Bit
  • Genymotion Version : 2.1.1
  • Virtual Device: Galaxy S4 - 4.3 - API18 - 1080x1920
like image 891
Mani Avatar asked Mar 29 '14 13:03

Mani


People also ask

Is Genymotion an Android emulator?

Genymotion is an Android Emulator that is faster than the Android Studio Emulator. Genymotion emulator offers a wide range of virtual devices for development, test, and demonstration purpose.

Why is Genymotion so slow?

Genymotion is based on virtualization. Make sure your CPU virtualization technology feature (Intel VT-x or AMD-V) is enabled in your computer motherboard BIOS. Another option might be to increase the RAM allotted to your Genymotion device.


2 Answers

Genymotion use Virtual Box, you need open this and set the connection Bridged instead NAT, power on the Android Genymotion VM in Genymotion APP and set VPN.

like image 142
Santiago Avatar answered Oct 17 '22 18:10

Santiago


Solution 1 :

Install a VPN application on the virtual device like VPNSecure or SecureVPN or the one from your provider, otherwise you could use OpenVPN application

Solution 2 :

Connect to your VPN in you host machine (you can disable binding your vpn connection to avoid passing through all the application)

Then you can force player.exe and genymotion.exe to use a specific network card (your vpn virtual network card/ip) a solution could be forcebindip

http://old.r1ch.net/stuff/forcebindip/

ForceBindIP.exe -i 192.168.1.25 "C:\Program Files\Genymobile\Genymotion\genymotion.exe"

where 192.168.1.25 is the ip of the interface you want to use

This application redirect any connection to a specific interface and keep it there.

Note : As this program is source closed you could be skeptical in a perspective of using it all the time, i personally disassembled it and checked every action and it seem that it's a clean application.

Solution 3 (Best):

On top of genymotion, install virtual box (i think you need to have virtual box before using genymotion) then when you run virtualbox application it will display your virtual android device, you can then set the different advanced setting directly on virtualbox application like so :

Capture 1

Capture 2

like image 1
intika Avatar answered Oct 17 '22 19:10

intika