Android emulator failed to ICE

Hi. I’m trying to connect android emulator to the dockerized Janus app.
It works ok from browser passing the echo test.

I’m staring it with python3 -m http.server 8089 in demos folder.

But from android emulator it fails with

WARN] [6210636616191647] ICE failed for component 1 in stream 1, but let's give it some time... (trickle pending, answer received, alert not set)
x approx 20 times
[WARN] [6210636616191647] ICE failed for component 1 in stream 1, but we're still waiting for some info so we don't care... (trickle pending, answer received, alert not set)

I’m using docker container I’ve donwloaded from GitHub - canyanio/janus-gateway-docker: Docker image for the Janus WebRTC Server

I’m running docker on my local computer, and I would install it onto the server in the future!

The thing about android emulators is that they access 10.0.2.2 IP address instead of 127.0.0.1, because they want to access my computer, and not the phone itself.

What can I do in my case?

I’ve tried adding STUN stun.l.google.com:19302 but has no luck with it!

Thanks!

Have you found a solution?

I have the similar problem, but on iOS client: web client works fine, despite ios app can’t show video and produces “ICE failed for component 1 in stream 1” errors in janus logs