ADB port forwarder


The ADB port forwarder can be used to connect your local adb client with a remote adb server.

Download the adbportforward.jar from the Downloads section (
Start the port forwarder on the machine on which the device is connected with the command:

Start the port forwarder on the remote machine with the command:

replace [adb location] with the location where the android sdk is located on your system.

You can now use adb on the command line and the android plugin in eclipse like the device is locally connected.

For information about the Android Debug Bridge read: []

The ADB server creates a server socket on port 5037. But it only seems to do this on the loopback interface. When the adb port forwarder is started in server mode, it creates new server sockets bound to all network interfaces at port 6037 and routes all traffic to the local adb server at port 5037. When the adb port forwarder is running in server mode it also ensures that the adb server keeps running by executing an adb start-server command every minute.

The adb port forwarder which is running in client mode will connect to the adb port forwarder running in server mode and will route all incoming trafic on port 5037 to the remote host at port 6037. When the adb port forwarder is started in client mode it will first kill the local adb server if it’s running.

How to write scenario outline in cucumber

A Scenario Outline is run once for each row in the Examples section beneath it (not counting the first row). The way this works is via placeholders. See the below example

Create Step defination now. Below are the step definations.

It’s very useful.

Remote debug web page on Android with Chrome DevTools

Here are the steps

  1. Connect your device with your machine. Check if it is connected properly using adb devices command on cmd.
  2. Now open chrome on your machine and type chrome://inspect/#devices
  3. You see your device on the screen.
  4. Now open chrome browser on your device and type any website. Or open any application which is made up of javascript.
  5. You will see the url of that application.
  6. Click on inspect and the device is cast on your chrome screen of your machine.