# VNC connection with Virtual Machine (ANDROID)

**URL:** <https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236>\
**Category:** Eggplant Functional\
**Created:** [February 25, 2013, 5:36am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236 "2013-02-25T05:36:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Radek](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@Radek](https://forums.eggplantsoftware.com/u/Radek)\
**Post date:** [February 25, 2013, 5:36am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/1 "2013-02-25T05:36:38Z")

</div>

Hello.

I have a problem with connection the android emulator with eggplant. I am using the virtual machine with installed android 4.0. I can not run the VNC server. Application (VNC) has root privileges. Has anyone tried to connect in this way? If so, please help.

---

<div class="post-metadata">

**Author:** ![JonathanOSX](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/jonathanosx/32/4_2.png) [@JonathanOSX](https://forums.eggplantsoftware.com/u/JonathanOSX)\
**Post date:** [February 25, 2013, 8:46am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/2 "2013-02-25T08:46:53Z")

</div>

If you are connecting directly to the Android device then you’ll want to use VMLite which can be downloaded from the Google Play Store. That application will not require that you root the device.

If you are running in an Emulator you could also connect to a VNC Server on the host machine.

---

<div class="post-metadata">

**Author:** ![Radek](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@Radek](https://forums.eggplantsoftware.com/u/Radek)\
**Post date:** [February 25, 2013, 9:05am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/3 "2013-02-25T09:05:59Z")

</div>

I want a direct connection between a virtual machine and eggplant. The device is rooted. I checked several VNC servers, but none of them works. On your web site is information about the possibility of using the virtual machine with android. I would like to know how to configure it. I do not want to connect to the host. For my needs this solution works too slowly.

---

<div class="post-metadata">

**Author:** ![JonathanOSX](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/jonathanosx/32/4_2.png) [@JonathanOSX](https://forums.eggplantsoftware.com/u/JonathanOSX)\
**Post date:** [February 25, 2013, 9:20am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/4 "2013-02-25T09:20:28Z")

</div>

VMLite will work within the emulator as well. Have you had any problem with that particular VNC server?

It can be configured as described in our knowledge base post: [Testing Non-Rooted Android Devices](http://www.testplant.com/support/2012/09/testing-on-non-rooted-android-devices-2)

---

<div class="post-metadata">

**Author:** ![Radek](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@Radek](https://forums.eggplantsoftware.com/u/Radek)\
**Post date:** [February 25, 2013, 10:43am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/5 "2013-02-25T10:43:50Z")

</div>

I have not checked VMLite yet. I wonder how to connect the virtual machine with the Host via usb. VMLite requires it to run. I do not know how to configure it. Do you have a tutorial for virtual machines?

---

<div class="post-metadata">

**Author:** ![RyanD](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/ryand/32/94_2.png) [@RyanD](https://forums.eggplantsoftware.com/u/RyanD)\
**Post date:** [February 25, 2013, 2:57pm UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/6 "2013-02-25T14:57:17Z")

</div>

I was able to start VMLite within the Android SDK emulator and connect to it with eggPlant following these steps:

1. Start the VMLite app within the android emulator. On the host PC/Mac run the VMLite Android App Controller ([http://www.vmlite.com/vaac/](http://www.vmlite.com/vaac/))

2. Follow the instructions to enable USB debugging in the android emulator (Settings \> Developer options \> USB debugging)

3. In VAAC click on USB Connect and enter port 5901. The emulator device should be listed as attached (in my case “emulator-5554 device”)

4. In VAAC click on Start VMLite VNC Server. You should see in the emulator that the VNC server is now running. On the host PC/Mac you should be able to make a VNC connection to localhost:5901

---

<div class="post-metadata">

**Author:** ![Radek](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@Radek](https://forums.eggplantsoftware.com/u/Radek)\
**Post date:** [February 26, 2013, 3:47am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/7 "2013-02-26T03:47:19Z")

</div>

Thanks Ryan.

The problem is that the SDK emulator does not have a built-in google store. I do not know how to install apps from Google Play, without the possibility of registration device in google. I need this program from an official source. That’s why I’m using virtual box.

---

<div class="post-metadata">

**Author:** ![JonathanOSX](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/jonathanosx/32/4_2.png) [@JonathanOSX](https://forums.eggplantsoftware.com/u/JonathanOSX)\
**Post date:** [February 26, 2013, 9:40am UTC](https://forums.eggplantsoftware.com/t/vnc-connection-with-virtual-machine-android/3236/8 "2013-02-26T09:40:40Z")

</div>

Radek, we’ll contact you via email.

For any other customers that need direct access to the VMLite application please contact our support team.
