Android : Genymotion loopback IP for apache2 virtual hosts in ubuntu.

on Monday, November 3, 2014


I am stuck with the genymotion loopback ip address issue. I am running genymotion 2.3.0 android 4.4.4 over linux mint latest version. I have configured an https connection in my local developer machine to test my website, which I want to access in my emulator too.


The /etc/hosts of my computer contains the line: 127.0.1.4 www.mysite.com mysite.com and I have installed SSL certificated for this ip address and website in apache2 httpd-ssl.conf file. what I really want is to access the website https://www.mysite.com via genymotion emulator.


I tried to get this done using many methods as described in various blog posts and Stackoverflow answers, but none worked for me well.


My genymotion emulation /etc/hosts contains:



127.0.0.1 localhost
10.0.3.2 www.mysite.com mysite.com


But when I browse or ping www.mysite.com it takes me to the xampp directory which is installed in my local machine.


Is there anyway to access the ip address 127.0.1.4 in genymotion emulator? I looked for the loopback instruction in genymotion website, but I failed looking for one.


Kindly Help! Thanks in advance!


0 comments:

Post a Comment