如何停止 adb 端口转发? [英] How do I stop an adb port forward?

查看:214
本文介绍了如何停止 adb 端口转发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用adb forward tcp:8080 tcp:8080来转发端口.但是我是否需要杀死 adb 服务器才能停止这种转发?

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?

我正在寻找一种在 adb 中停止转发端口的方法,在它设置后,但不再需要转发时.

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.

推荐答案

尝试 adb forward --remove tcp:8080adb forward --remove-all.

这已于 2012 年 12 月添加到 adb(在此处查看补丁).为 Android 4.3 (API 18) 发布的 SDK 更新是第一个支持它的.

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.

这篇关于如何停止 adb 端口转发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆