Make Genymotion point to localhost

I had a lot of fights with this and I think it’s better to write down the solution so I won’t waste my time looking again on google/stackoverflow for it. Maybe this will help you too!

Problem

You might have a local webservice or something on your machine that needs to be accessed from a Genymotion emulator. At first you would point to localhost or 127.0.0.1 and you will note that you get “Web page not available” or whatever your browser tells you when it doesn’t find a page for you..
Then you will search over the internet and you will find that in order to point to localhost from the pc that hosts the Android emulator you have to use 10.0.2.2 instead. Great! You try that then but :( you will see that it fails (at least on Mac OS).

Solution

Try 10.0.3.2

That will route you to localhost (127.0.0.1). Please note that if your localhost server/page needs a special port, don’t forget to add it at the end of the ip address :)!

Hope this helps!

Scroll to Top