无法ping Android设备 [英] Cant ping Android device

查看:221
本文介绍了无法ping Android设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Raspberry Pi 3 ping我的三星Galaxy S8,但似乎没有得到回应.

I am trying to ping my Samsung Galaxy S8 from the Raspberry Pi 3 but I do not seem to be getting a response.

我在我的Pi上将命令行参数用作ping 192.168.1.187,但无法收到ping命令.我什至尝试使用Galaxy S8的Android终端对ping wwww.google.com执行ping操作,但无法发送ping操作.

I am using the command line arguments as ping 192.168.1.187 from my Pi, but it fails to receive a ping back. I had even tried using Android Terminal from the Galaxy S8 to ping wwww.google.com but it cannot send a ping.

这使我相信问题出在Galaxy S8上.有什么办法可以允许"对其执行ping操作吗? Pi是否可以通过其他方法检测Galaxy S8是否连接到相同的wifi网络?

This leads me to believe that the problem lies on the Galaxy S8. Is there any way to "allow" pings on it? Is there another method where the Pi can detect if the Galaxy S8 is connected to the same wifi network?

注意:

  • 路由器无法ping通到Galaxy S8

  • Router cannot ping to the Galaxy S8

树莓派可与其他设备(笔记本电脑,电视和其他Pis)配合使用

Raspberry Pi pings fine with every other device (Laptop, TV, other Pis)

防火墙已禁用

Galaxy S8的wifi设置为always on

Galaxy S8's wifi is set to always on

推荐答案

您是否检查了Android手机的睡眠策略.为了节省电量,Android可能会使您的设备进入睡眠状态.

Did you check the sleep policy of android phone. To save battery android may put your device to sleep.

设置>无线和网络设置> Wifi设置>按菜单按钮>高级> Wifi睡眠策略,设置为从不.

Settings > Wireless & Network Setting > Wifi Settings > Press Menu button > Advanced > Wifi sleep policy , Set to Never.

如果您仍然无法ping通,则可以在android内核(OS)中设置iptables规则以阻止icmp数据包.您正在使用什么Android操作系统?

Still if you're not able to ping, then in the android kernel (OS) iptables rules may be set to block the icmp packets. What is the android OS you're using ?

您可以尝试nmap.

sudo nmap -sP 192.168.1.0/24 或者 须藤nmap -sP 10.0.0.1/24

sudo nmap -sP 192.168.1.0/24 or sudo nmap -sP 10.0.0.1/24

这篇关于无法ping Android设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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