从Android访问PC端的port (reverse port forwarding)
16lz
2021-01-23
大致就是
Device side:
install SSH Server, add ssh server on 22222portand user q
start ssh server
PC side:
adbforwardtcp:22222 tcp:22222 //这是为了能够从PC访问android里的ssh server的22222端口。
ssh -f -N -R 3000:localhost:3000 q@localhost -p 22222
Then you can useport3000 in device,
it will be forwarded to PC's 3000port
更多相关文章
- 【android】android 开发错误集锦4月
- Android requires compiler compliance level 5.0 or 6.0. 错误
- Android 经验: 本地 5555 端口会被 adb 误认为 emulator
- Mono for Android 设计器错误:Disconnected from layout renderer
- Android开发错误信息收集
- android中常见的错误及解决办法
- android webview 自定义404错误页面!
- Android 使用弹出对话框,报Unable to add window错误
- Android Studio 常见错误 之unable to find valid certification