How do I stop an adb port forward?

22,593

Try adb forward --remove tcp:8080, or adb forward --remove-all.

This was added to adb in December 2012 (see patch here). The SDK update released for Android 4.3 (API 18) was the first to support it.

Share:
22,593
n611x007
Author by

n611x007

Updated on July 19, 2022

Comments

  • n611x007
    n611x007 almost 2 years

    One can forward a port with adb forward tcp:8080 tcp:8080. But do I need to kill the adb server to stop this forwarding?

    I'm looking for a way to stop forwarding of a port in adb, after it was set up, but when the forward is no longer needed.