3

I start a Docker container from budtmo/docker-android-x86-8.1:

docker run --privileged -d --name foo -p 4723:4723 -p 5555:5555 \
  -e DEVICE="Samsung Galaxy S6" \
  -e APPIUM=true \
  budtmo/docker-android-x86-8.1

Then, I'm trying to connect to it from my host machine:

adb connect 127.0.0.1:5555

I'm getting:

failed to connect to '127.0.0.1:5555': Connection refused

What am I doing wrong?

yegor256
  • 102,010
  • 123
  • 446
  • 597

1 Answers1

2

Try these commands

adb kill-server

adb start-server

adb connect localhost:5555 // or {localhost ip address}:5555

This will work if port 5555 is exposed

Israël Mekomou
  • 115
  • 2
  • 5