WiFi错误:“无法连接到网络” -- wi-fi 领域 和 samsung-galaxy-nexus 领域 和 4.1-jelly-bean 领域 和 troubleshooting 领域 android 相关 的问题

WiFi Error: “Failed to connect to network”


简体版||繁體版
8
vote

问题

中文

间歇性地,当我尝试连接到WiFi网络时,我将以下错误消息作为Toa​​st消息:

无法连接到网络

在尝试连接时立即弹出消息,因此显然它没有尝试和失败。我没有找到日志中的任何错误。受影响的网络是我以前连接的那些没有变化的设置。

如何弄清楚问题是什么?

我有一个rooted galaxy nexus运行Android 4.1.1和Stock Rom。这个问题与我发布的另一个问题,但这更像如何找到如何找到的来源特定的错误消息,因此其焦点是不同的。

其他详细信息

此处是根据评论的更多详细信息:

  • 我在我的家庭和工作网络上观察到这一点。一个被识别为WPA2 PSK,另一个被识别为WPA / WPA2 PSK。

  • 我没有按照故障排除指南

  • 忘记网络并重新添加它没有效果。事实上,如果我忘记了网络,我无法再加入它。

  • 无线密码没有改变。

  • 在我上无线时没有配置代理。但是,当我在数据连接时,我运行Onavo延伸。禁用它没有效果。

  • 我已从DHCP切换到静态IP地址。这样做降低了问题的频率,似乎已经消除了我之前的问题,其中WiFi将随机丢弃。

  • wifi睡眠设置为"仅在插入时" 。我不认为这是相关的,因为我的问题首先建立连接(例如当我在家或在工作时到达时),而不是维持一个。

请注意,尽管所有这些故障排除步骤,我的初始目标是找到一个实际的错误消息或日志条目,其提供有关问题的有用信息。

english

Intermittently, when I try to connect to a WiFi network, I get the following error message as a toast message:

Failed to connect to network

The message pops up immediately upon attempting to connect, so clearly it isn't trying and failing. I haven't found any mention of an error in the logs. The affected networks are ones that I've previously connected to with no change in settings.

How can I figure out what the problem is?

I've got a rooted Galaxy Nexus running Android 4.1.1 and the stock ROM. This question is related to another question that I posted earlier, but this one is more about how to find the source of a particular error message, so its focus is different.

Additional Details

Here are some more details based on the comments:

  • I've observed this on my home and work networks. One is identified as WPA2 PSK and the other is identified as WPA/WPA2 PSK.

  • I haven't powered off the phone as described in the troubleshooting guide mentioned in the comments. However, I have rebooted to no avail (using the reboot command that's available on rooted phones).

  • Forgetting the network and re-adding it has no effect. In fact, if I forget the network I can no longer successfully re-add it.

  • The wireless password hasn't changed.

  • There's no proxy configured when I'm on wireless. However, I run Onavo Extend when I'm on a data connection. Disabling it has no effect.

  • I've switched from DHCP to static IP addresses. Doing so reduced the frequency of problems and seems to have eliminated my earlier issue where wifi would be randomly dropped.

  • Wifi sleep is set to "Only when plugged in." I don't think it's relevant because my issue is establishing a connection in the first place (such as when I arrive at home or at work), not maintaining one.

Note that despite all these troubleshooting steps,my initial goal is to find an actual error message or log entry that gives useful information about the problem.

           
         
         

回答列表

3
 
vote

您是否安装了自定义恢复?我在Galaxy S2上有两次问题,每次运行来自恢复模式的权限修复了我的问题。

如果这不起作用,请尝试删除您的WiFi配置文件。不确定它在nexus上是什么,但我猜这将是 /data/misc/wifi/wpa_supplicant.conf /data/misc/wifi/wpa.conf 的东西。显然,在删除任何内容之前,您应该备份。请注意,如果您这样做,您将丢失所有WiFi设置。

 

Do you have custom recovery installed? I have had this problem twice on a Galaxy S2, and what fixed it for me every time was running a permissions fix from recovery mode.

If that doesn't work, try deleting your WiFi config file. Not sure what it is on the Nexus, but I'm guessing it'll be something along the lines of /data/misc/wifi/wpa_supplicant.conf or /data/misc/wifi/wpa.conf. Obviously you should make backups before deleting anything. Note that you'll lose all your WiFi settings if you do this.

 
 
         
         
1
 
vote

我认为这部分问题是关键:

我已从DHCP切换到静态IP地址。这样做降低了问题的频率,似乎已经消除了我之前的问题,其中WiFi将随机丢弃。

IP寻址问题肯定会导致您这样的烦恼。静态寻址只是治疗症状,不治疗疾病。假设您连接的APS尚未更改其DHCP设置,请侧重于调查手机如何充当DHCP客户端。我找到了一个错误报告其中,其中几个用户报告了相同的你有麻烦(作者实际引用您以前的问题之一)。其中一个评论者找到了与DHCP相关的日志条目 ;您在评论中提到您没有找到任何相关日志条目,但您是否看到任何类似于此评论员的?

4月1日05:26:12未知守护进程.Info dnsmasq-dhcp [522]:DhcpRequest(BR0)192.168.200.225 A0:0B:BA:83:65:32

4月1日05:26:12未知守护进程.info dnsmasq-dhcp [522]:Dhcpnak(BR0)192.168.200.225 A0:0B:BA:83:65:32错误地址

另外,一个后来的评论者发现了DHCP客户端服务 dhcpcd 在他的设备上未运行。他解释说:

我开始研究一下,使用旧的Linux控制台和"PS" 命令。我注意到:

  • 每次无法连接,DHCPCD都没有运行。
  • 至少有几次,Kingsoft Office进程在出现问题时运行。

所以,我所做的是:

  • 卸载的金匠办公室,
  • 在我经常使用的所有网络上切换到静态IP(家庭,工作,朋友,家庭)。我还禁用了WiFi电源管理(阅读 在某个地方可以提供帮助)。

之后,问题消失了。它是 现在已经过了2个星期了!

他发现DHCP客户服务的缺失与他的一个应用程序相关联。重新配置您的设备以使用DHCP,尝试连接到一个问题的AP,然后使用终端仿真器(或类似)通过键入命令 ps | grep dhcp 来运行他做的同一调查。输出应该如下所示:

dhcp 4858 1 924 552 ffffffff 00000000 S /system/bin/dhcpcd

这意味着 dhcpcd 进程正在运行。如果 dhcpcd 未运行,则只需返回任何内容。如果是这样的话,再次键入 ps 以获取所有当前进程的列表。您是否介绍了已安装的应用程序之间的任何相关性以及您拥有的问题?作为临时的工作,尝试通过键入 sudo dhcpcd 再次尝试开始服务,然后重试连接。

 

I think this part of your question is key:

I've switched from DHCP to static IP addresses. Doing so reduced the frequency of problems and seems to have eliminated my earlier issue where wifi would be randomly dropped.

IP addressing issues could certainly cause you troubles like this. Static addressing is only treating the symptoms, though, not curing the disease. Assuming the APs you're connecting to haven't had their DHCP settings changed, focus on investigating how your phone is acting as a DHCP client. I found a bug report in which several users report the same trouble you're having (the author actually references one of your previous questions). One of the commenters found log entries related to DHCP; you mentioned in a comment that you didn't find any relevant log entries but did you see any that look like this commenter's?

Apr 1 05:26:12 unknown daemon.info dnsmasq-dhcp[522]: DHCPREQUEST(br0) 192.168.200.225 a0:0b:ba:83:65:32

Apr 1 05:26:12 unknown daemon.info dnsmasq-dhcp[522]: DHCPNAK(br0) 192.168.200.225 a0:0b:ba:83:65:32 wrong address

Additionally, a later commenter found that the DHCP client service dhcpcd was not running on his device. He explains:

I started researching a bit, using good old Linux console and "ps" command. I noticed that:

  • every time I could not connect, dhcpcd was not running.
  • at least several times, Kingsoft Office process was running when the problem appeared.

So, what I did was:

  • uninstalled Kingsoft Office,
  • switch to static IP on all networks I use often (home, work, friends, family). I also disabled WiFi power management (read somewhere that it could help).

After these, problem disappeared. It's been gone for 2 weeks now!

He found that the DHCP client service's absence was correlated with one of his apps. Reconfigure your device to use DHCP, try to connect to one of the problem APs, then use Terminal Emulator (or similar) to run the same investigation he did by typing the command ps | grep dhcp. The output should look something like the following:

dhcp 4858 1 924 552 ffffffff 00000000 S /system/bin/dhcpcd

This means that the dhcpcd process is running. If dhcpcd is not running, you'll simply be returned nothing. If that's the case, type ps again to get a list of all current processes. Do you notice any correlations between an app you've installed and the problems you're having? As a temporary work-around, trying starting the service again by typing sudo dhcpcd, then try again to connect.

 
 
0
 
vote

我设法循环,如果没有解决,手头的问题。

简而言之,我安装了 wifi ruler - free ,它覆盖库存WiFi连接经理。

这允许我单击并连接到我遇到的任何AP,没有问题。

它确实是其他东西的负载,最后我可以阻止我的手机连接到我的邻居令人难以置信的强大的WiFi。

希望这有帮助。

 

I managed to work round, if not resolve, the issue at hand.

In short I installed Wifi Ruler - Free, which overrides the stock wifi connection manager.

This allows me to click and connect to any AP that I come across with no issue.

It does loads of other stuff, finally I can prevent my phone from connecting to my neighbours incredibly strong open wifi.

Hope this helps.

 
 
0
 
vote

检查是否有设置移动数据限制。我知道我的三星谷歌Nexus maguro的奇怪我删除了极限,wifi返回正常。

但是,我在Nexus 7 Gouper上发出了同样的问题,我尝试了网上的各种应用和技巧。但最后我不得不刷新氰基od以获得WiFi的工作。
 

Check to see if you have set mobile data limit. I know it's weird on my samsung Google nexus maguro I removed the limit and wifi returned back to normal.

However I had the same issue on Nexus 7 grouper, I tried various apps and tricks on the net. But finally I had to reflash the Cyanogenmod to get wifi working on it.

 
 
-1
 
vote

我之前给了这个答案到了一个断开的查询,但这里有一些谐振。

我想我可以猜出正在发生的事情。当我第一次开始使用免费热点时,我没有问题,并且通常他们将有一个登录屏幕来插入区域设置密码。然而,有些地方,如酒店似乎在没有登录的情况下免费访问有限的时间或首次使用,然后他们将希望您注册。

当我第二次返回这些地方时,我发现手机找到网络并要求连接,但每次使用都会返回网络错误或似乎连接并被切断。事实上,我正在重新排队到他们的登录页面,只有它似乎常常在姜饼的背景中打开,所以你不知道它正在发生。

摆弄后,您有时可以获得登录页面来显示,然后注册。通常我只能通过尝试谷歌搜索来执行此操作。谷歌以某种方式似乎知道通过登录页面路线,而其他应用程序播放无知。"

 

I gave this answer to a disconnection query earlier but there is some resonance here.

I think I can guess what is happening. When I first started using free hotspots I was connecting with no problem and often they will have a logon screen to insert the locale password. Some places however like hotels seem to give free access for a limited time or for first use without logging in and then later they will expect you to register.

When I have returned to these places a second time I find that the phone finds the network and claims to be connected but every use returns a network error or appears to connect and get cut off. In fact I am getting rerouted to their logon page, only it seems to often only open in background in gingerbread so you don't know it is happening.

After fiddling around you can sometimes get the logon page to show and then register. Often I can only do this by attempting a google search. Google somehow seems to know to route via the logon pages whereas other apps play ignorant."

 
 
 
 
-2
 
vote

尝试重新启动手机,重新启动后会再次找到它。

 

Try to reboot your phone, you will find it again after rebooting.

 
 
 
 
-2
 
vote

我有同样的问题。我发现它必须使用我的简单电池保护程序。搞乱了设置,它立即连接。

 

I had the same issue. I found it had to to with my Easy Battery Saver app. Messed around with the settings and it immediately connected.

 
 
 
 

相关问题

0  我的Android平板电脑不是旋转  ( My android tablet isnt tworking ) 
我有一个圣诞节的新平板电脑,它的工作正常。今天它只是做得不好: 我打开电源并在屏幕上刷手指以解锁它。然后, 当我触摸应用程序时,它表示应用程序未安装。 有时当我触摸一个应用程序时,它会上面但只是留在标题屏幕上。 在主页上的其他时间,它不会让我向右向右滑动,但留在主页上。 当我去设置并尝试单击重启按钮时,它会冻结。...

22  无法通过USB将Galaxy S3连接到PC  ( Unable to connect galaxy s3 to pc via usb ) 
我现在已经有了我的Galaxy S3几个月,并且一直能够通过USB连接到我的电脑。几天前,它突然停止了工作。我发现了许多 tother android.se ,但没有人能够回答我的问题。 症状:当我通过USB插入手机时,手机发出哔哔声,我会在电池上闪电,但这就是它。下拉状态栏中没有USB选项,PC无法识别已...

3  如何排除锁定/冻结  ( How to troubleshoot a lockup freeze ) 
我在cn(a)3.8上运行了gnex。屏幕关闭时已开始锁定/冻结。到目前为止,它主要发生在一夜之间,而它充电。我必须拉动电池来解决。我相信它开始了几个rom更新前。我还没有经历了做工厂擦拭的步骤(但已经清除了缓存/ dalvik)等,但我想知道Android是否必须解决什么工具来排除冻结等。 是有一个系统日志等,我可...

0  除非我处于安全模式,否则我无法启动手机。如何解决它?  ( I cant start my phone unless im in safe mode how to fix it ) 
所以我有问题。我的手机在下载模式下启动,除非我使用 volume up + home + power ,否则我无法启动它。我试图擦拭手机,但它不起作用,我什么都没有丢失了我的数据。 当我能够启动它时,它处于安全模式,我无法删除安全模式,因为当我尝试时,它在下载模式下启动。 我的手机是一个在Android 5....

64  adb的安装是最小的吗?  ( Is there a minimal installation of adb ) 
谈到故障排除,我经常阅读推荐,如"使用 adb logcat 查找更多详细信息" 。寻找备份所有应用程序的好方法,包括他们的数据,无根设备的完整备份是指<代码> adb backup 和 adb restore 。在几个地方,可以在使用 adb ,这样的几个地方可以找到在Android设备上远程执行的方法作为使用 a...

0  我如何遮住我的lg阳光  ( How do i unbrick my lg sunshine ) 
我在又一次又一次地重新启动应用程序宿醉,无法在我的手机应用程序或任何其他应用程序上打开我的设置,以便我打开手机的背面,然后通过拉出电池并将电池放回电池后关闭在LG Logo屏幕上,并不会做任何其他事情 ...

16  app <x>无法正常工作。我该如何解决它?  ( App x isnt working correctly how can i fix it ) 
我有一个不正确工作的应用程序。无论是它都没有启动,还是没有响应命令,或者一些功能不是在做我期望的。 我可以做些什么简单的步骤,试图以自己的方式解决问题? (这个问题和答案旨在是一个规范和通用来源,用于处理不正确的应用程序。) ...

0  如何在PDF中加快切换页面?  ( How to speed up switching pages in a pdf ) 
如何加速PDF的页面之间的翻转(当前在Nexus 7上使用EZPDF)? 确定pdf如何在介于之间的速度翻转页面的功能?我认为这将是PDF大小的函数,但是,页面之间的一些较小的PDF翻转超过一些较大的PDF。 通过了解"函数" ,希望能够转换/改进我的PDF,以便我可以更快地翻转页面。 我喜欢在我的平板电脑上读取...

1  Galaxy S2随机关闭  ( Galaxy s2 turns off randomly ) 
我的三星Galaxy S2 I9100有问题。 我现在拥有它大约8个月,并尝试使用一些自定义roms。我安装了CynogenMod 9,10,10.1测试的Syah内核并在DualBoot中安装了AOKP等。 一切都很好,直到我安装了cm10.1作为单一启动。 我的手机开始随机关闭,我认为这将是一个软件错误并...

8  WiFi错误:“无法连接到网络”  ( Wifi error failed to connect to network ) 
间歇性地,当我尝试连接到WiFi网络时,我将以下错误消息作为Toa​​st消息: 无法连接到网络 在尝试连接时立即弹出消息,因此显然它没有尝试和失败。我没有找到日志中的任何错误。受影响的网络是我以前连接的那些没有变化的设置。 如何弄清楚问题是什么? 我有一个rooted galaxy nexus运行Andro...




© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有