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

查看:54
本文介绍了无法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.

我使用命令行参数作为 ping 192.168.1.187 从我的 Pi,但它无法收到 ping 回.我什至尝试使用 Galaxy S8 的 Android 终端来 ping www.google.com,但它无法发送 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 操作?有没有其他方法可以让树莓派检测到 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

Raspberry Pi 与其他所有设备(笔记本电脑、电视、其他 Pi)的 ping 信号都很好

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 数据包.您使用的安卓操作系统是什么?

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天全站免登陆