How to remote control using Droid VNC Server via USB?

I have installed Droid VNC Server on my Android phone 2.2 (CyanogenMod), but it is not clear how to control now my phone via USB.

When I start the server on the phone it gives me an IP but I cannot ping to it. I cannot neither connect using the browser at the specified address nor through VNC client.

I have root access.

Can someone explain me the steps to follow?

Topic vnc remote-access 2.2-froyo android

Category Android


There's no manual or FAQ I've found for the program so I'm not certain if this is the way they intended it to be used. It does work, though, and I can't see an alternative method of using USB.

  1. You need ADB installed along with the proper drivers for your device. This varies with platform and phone, so check Google or XDA.
  2. Enable USB Debugging on your device -- Settings > Applications > Development > USB debugging
  3. Plug in, start droid VNC server
  4. On a command line, run these commands:
    • adb forward tcp:5801 tcp:5801
    • adb forward tcp:5901 tcp:5901
  5. Visit http://localhost:5801 with a browser or point your VNC client to localhost:5901

I do notice that performance isn't any better over USB vs a 802.11g, so I'd only recommend going to the trouble of this if accessing your device via WiFi isn't feasible.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.