adb -s 192.168.1.6:5555 ..... error: more than one device/emulator : <p>I am working with react native, and would like to switch adb to wifi for easier debugging.</p>

<p>I connect my device using usb, then type these commands.</p>

<pre><code>adb tcpip 5555
</code></pre>

<p>Then I disconnect my usb cable and enter this command</p>

<pre><code>adb connect 192.168.1.6
connected to 192.168.1.6:5555
</code></pre>

<p>adb devices result in the following</p>

<pre><code>adb devices
List of devices attached
192.168.1.6:5555        device
</code></pre>

<p>So it only shows one device connected.
However trying this command</p>

<pre><code>adb reverse tcp:8081 tcp:8081
</code></pre>

<p>gives me the following error even though only one device is shown with adb devices command as shown above</p>

<pre><code>error: more than one device/emulator
</code></pre>

<p>So I tried this command but I also get the same error</p>

<pre><code>adb -s 192.168.1.6:5555 reverse tcp:8081 tcp:8081
error: more than one device/emulator
</code></pre>

<p>Trying the following gives me the same error</p>

<pre><code>adb -s "192.168.1.6:5555" reverse tcp:8081 tcp:8081
adb -s "192.168.1.6" reverse tcp:8081 tcp:8081
adb -s 192.168.1.6 reverse tcp:8081 tcp:8081
</code></pre>

<p>even trying to use the device id which I copied when it was connected to usb resulted in the same error</p>

<pre><code>adb -s deviceid reverse tcp:8081 tcp:8081
</code></pre>

<p>Is there a way to make adb reverse work when adb is connected wireless?</p>

<p>Thanks for advance.</p>
