惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - 巍巍边疆

最新版Android开发工具 卸甲归田 12月编程语言排行榜:C#前途无量 便捷的安全检测 Windows 7 64位中安装IIS失败?“出现错误。并非所有的功能被成功更改” Microsoft VBScript 运行时错误 错误 '800a000d' 类型不匹配: 'regEx.Replace' 64位系统上的Jet for Access, Excel, Txt 64位IIS(IIS6/IIS7)上运行Jet.Oledb的设置 超经典!90后看不懂的操作系统 如何在浏览器看到ASP的错误详细信息(IIS7.0) PHP and ASP.NET - A Feature List Javascript DataGrid using the MVC 【转载】Resharper上手指南 QQ2010在win7中安装时如何把个人文件保存于安装目录下 大智慧日K线的数据结构 实时股票数据接口大全 获取实时股票数据与股票数据接口API 合格的CIO需要具备怎样的素质 SQL Server 怎么设置星期日为一周的第一天
Android模拟器调试网络通讯
巍巍边疆 · 2012-02-12 · via 博客园 - 巍巍边疆

目标:从网络中任意主机访问模拟器上的程序,这个实现是参考了google上的一篇文章。

  问题:访问网络的时候只可以从模拟器主动往出去连。但是却无法从外面连接模拟器。有的文章说可以设置redir端口映射,但是这样只能在模拟器所在的同一台机器上测试,其他网络内的机器或者手机无法访问模拟器上的程序。

  解决原理:通过端口转发软件进行数据包转发,server在30002收到的数据包转发到模拟器30003端口,模拟器发出到同一主机30004端口的数据包被转发到网络上的client。

  

  实现步骤:

  1、通过port转发设置(portforward.exe, 可以在google上搜索下载或从我的网盘下载:http://115.com/file/dnmr4xhd#portforward_bin.zip)

  

  2、设置模拟器redir

  telnet localhost 5554

  redir add tcp:30003:30003

  3、测试通过