I'm using Jenkins for continous integration on an android emulator to run instrumentation tests with the espresso framework. Unfortunately the server is not able to connect to the emulator. I have a master instance which delegates the push events from GitHub to the slave instance where the android sdk is installed. I installed the android-emulator-plugin and configured it like described. At first the Jenkins starts the emulator, but it cannot connect to it afterwards. This is the result:

[![enter image description here](https://i.stack.imgur.com/4jUHC.png)](https://i.stack.imgur.com/4jUHC.png)

I also cannot connect to the emulator when I'm on the slave machine. But if I use 127.0.0.1 instead of localhost the adb tool can connect to the emulator:

[![enter image description here](https://i.stack.imgur.com/zxGOV.png)](https://i.stack.imgur.com/zxGOV.png)

Is it possible to use 127.0.0.1 instead of localhost with the android-emulator-plugin? I already specified the enviorment variables $ANDROID\_AVD\_DEVICE and $ANDROID\_SERIAL with no result. Any ideas?