Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

234
Visualizações
How to get from Android Emulator to Docker Machine's container?

I have a Windows laptop with Docker Toolbox installed. So my backend services live in docker containers. Also, I have an Android Emulator with client application installed.

I know that I can get from Android Emulator to host's loopback by using 10.0.2.2 address. The problem is, that docker machine has its own address: 192.168.99.100 ( by default ).

How to make this work? Basically, I want to call 192.168.99.100:8080 from the Emulator. It is working well from Postman installed on Windows, but as far as I understand these are completely different networks, and this is the reason that it does not work out of the box.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Ok I found two solutions:

VirtualBox port forwarding

https://stackoverflow.com/a/36458215/5076865 - After that you can access the docker app via 10.0.2.2:<your_port>

VirtualBox bridged adapter

Open docker-machine setting in VirtualBox and enable the 3rd network adapter and set it to the bridge mode. You should be able to access the docker app via 192.168.99.100:<your_port> directly from emulator.

For me the second solution is better, because I have <your_port> free on my docker host.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda