为什么我们不能从 Android 模拟器发送 UDP 数据包?
我和我的朋友有一只连接到 WiFi 网络的无线机器狗 我们的计算机已插入其中。计算机正在运行 Android 模拟器,我们正在尝试发送 UDP 数据包到 无线机器狗。如果狗收到它,它应该开始发送 返回 UDP 数据包。我们编写的程序在模拟器之外运行, 使用 Wireshark,我们看到数据包被发送到正确的 IP 地址和机器人的正确 MAC 地址。当我们尝试 从模拟器发包,狗没反应怎么办 如果收到数据包应该。在Wireshark中我们可以看到 模拟器将数据包发送到狗的正确 IP 地址,但是 不是正确的 MAC 地址。它将其发送到 MAC 地址 我们插入的路由器。我们想要指定数据包,以便 它发送到正确的 MAC 地址,但我们不知道该怎么做 这。任何帮助都会很棒
My friend and I have a wireless robot dog connected to a wifi network
which our computer is plugged into. The computer is running an
Android emulator and we are trying to send a UDP packet to the
wireless robot dog. If the dog receives it, it should start sending
UDP packets back. The program we wrote works outside of the emulator,
and using Wireshark, we see that the packet is sent to the correct IP
address and the correct MAC address for the robot. When we attempt to
send the packet from the emulator, the dog does not respond how it
should if it received the packet. In Wireshark we can see that the
emulator sends the packet to the correct IP address for the dog, but
not the correct MAC address. It is sending it to the MAC address of
the router we are plugged into. We want to specify the packet so that
it sends to the correct MAC address but we cannot figure out how to do
this. Any help would be great
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
老问题...但这可能就是您正在寻找的...它描述了您的症状。
http://groups.google.com/group/android-developers/browse_thread /线程/d6856a3f412e06b8
Old question... but this is probably what you're looking for.. it describes your symptoms.
http://groups.google.com/group/android-developers/browse_thread/thread/d6856a3f412e06b8