Reverse engineering weird wifi issues caused by MediBang Paint Pro and Qt
https://blog.ando.fyi/posts/diagnosing-an-unsual-wifi-issue/
Resolving an unusual wifi issue
2020-06-28
None
<div><div>
 <h2>What?</h2>
<p>Late last year, I started experiencing some unusual intermittent connection issues on my Desktop. In general, I had a stable connection with average latency; however, at (seemingly) random times throughout the week, I would start experiencing sudden 2000ms+ latency spikes every couple of seconds.</p>
<p></p>
<p>This made all audio/video calling software unusable and most online games unplayable.</p>
<p>This issue appeared to line up with my cross-country move from Washington State to South Carolina, so there were too many factors to easily pinpoint the issue. However, as it mainly only effected gaming and audio/video calls, I didn’t put too much focus on it.</p>
<p>Over the past couple of months I have (slowly) tried to figure out why this was happening, with little luck until today.</p>
<h2>Why?</h2>
<p>Initially, the only thing that was clear about the issue was that it was limited to my desktop computer <strong>only</strong>. My laptop and other devices connected to the wifi did not have this issue, even when placed in the exact same spot as the desktop.</p>
<p>First, I purchased a new, highly-reviewed, wifi adapter on Amazon. It didn’t resolve the issue. It did, however, come with an offer for a free 64GB flash drive in exchange for a good reviews.</p>
<p>(That was a pretty terrible purchase overall)
</p>
<p>Later, (for unrelated reasons) I built an entirely new desktop computer, not using anything from the old one, except the new wifi adapter. This included a fresh install of Windows 10.</p>
<p>It was great, this new computer had no issues! I had suspected that my old motherboard’s USB ports might have been damaged during the move to SC, so that must have been the case. Everything is good now, right?</p>
<p><strong>No. Everything is not good now.</strong></p>
<p>A few weeks later, and the issue suddenly began happening on the new computer also, and I had no idea what the cause could be.</p>
<p>I tried using multiple different wifi adapters that I owned.</p>
<p>I tried changing the wifi channel, as it appeared to overlap a neighbors.</p>
<p>I tried turning off Windows Update Delivery Optimization (p2p update sharing). After turning this off and restarting, the issue <em>appeared</em> to be resolved, but then reappeared later.</p>
<p>At one point, my wifi issue even annoyed one of my brothers so badly, due to dropping Skype calls, that he bought me another (slightly less sketchy) wifi adapter on Amazon. This appeared to temporarily resolve the issue after installing the Realtek driver and restarting, but then it came back.</p>
<p></p>
<p>Nothing seemed to work.</p>
<hr />
<p>Today, in a last-ditch desperate attempt at fixing the issue, I:</p>
<ul>
<li>Turned off the box fan in my room</li>
<li>Unplugged my wireless Wacom drawing tablet’s USB dongle.</li>
<li>Closed FireFox</li>
<li>Closed MediBang Paint Pro</li>
</ul>
<p><strong>The issue stopped.</strong></p>
<p>I immediately suspected interference from the wireless drawing tablet or box fan, so tried those again, but they were not the cause.</p>
<p>I couldn’t possibly imagine how a web browser or drawing application could cause this, but I tried anyway.</p>
<p>First I ran FireFox, opened multiple tabs on different sites, and waited…</p>
<p>Nothing</p>
<p>Then I ran MediBang Paint Pro.</p>
<p></p>
<h2>Why!?</h2>
<p>Why the hell would digital painting software cause wifi lag spikes?</p>
<p>As it turns out, there are <a href="https://www.reddit.com/r/medibangpaint/comments/br6ruw/medibang_interrupting_wifi_connection/">multiple</a> <a href="https://www.reddit.com/r/medibangpaint/comments/aj440q/help_medibang_makes_my_discord_calls_lag/">instances</a> <a href="https://www.reddit.com/r/medibangpaint/comments/enuucb/wifi/">of</a> <a href="https://twitter.com/SomeLizardGuy/status/1223575145597423616">people</a> <a href="https://www.deviantart.com/trelock/journal/Need-Help-Medibang-s-disdain-for-my-Wifi-606655928">complaining</a> about this issue with MBPP.</p>
<p>If we take a quick look with Process Monitor, we can see that it’s definitely doing something odd.</p>
<p></p>
<p></p>
<p>At the exact same time the lag spikes occur, MBPP starts querying the registry keys for all of the network interfaces.</p>
<p>To dig a bit deeper into why this is happening, we can attach to the process with a debugger (x64dbg here), and set breakpoints on the Win32 Reg* APIs.</p>
<p></p>
<p>Eventually, our <code>RegOpenKeyExInternalW</code> breakpoint is hit, and we can take a look at the call stack to determine where this is being called.</p>
<p></p>
<p>Looking at the call stack, we can see that first non-system library in the call stack is qt5network.</p>
<p>Surprisingly, no more debugging is needed, as a quick google search for “q5network ping issue” will lead you to <a href="https://bugreports.qt.io/browse/QTBUG-40332?focusedCommentId=390766&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel">QTBUG-40332</a>.</p>
<p>If I understand correctly, any Qt5 (&lt;5.14) application using <code>QNetworkAccessManager</code> will check for wifi interface changes every 10 seconds for the purpose of <a href="https://doc.qt.io/qt-5/bearer-management.html">bearer management</a>, causing massive lag spikes and/or packet drops entirely. Even if <code>QNetworkAccessManager</code> is instantiated internally for something simple, like an HTTP request.</p>
<p>I suppose the workaround is simple enough, set the environment variable <code>QT_BEARER_POLL_TIMEOUT</code> to <code>-1</code>.</p>
<p>I just wish I knew that around 8 months ago.</p>
<h2>TL;DR</h2>
<p>Qt5 has been crippling my wifi system-wide for past 7-8 months, just by running MediBang Paint Pro.</p>
<p>I stupidly attributed it to many other things, because, honestly, who would expect Qt to be the cause of their system-wide wifi problems?</p>
<ul>
<li><a href="https://invent.kde.org/graphics/krita/-/commit/d4eaaa63af8dc769acf79cd497e741f1de9be31b">https://invent.kde.org/graphics/krita/-/commit/d4eaaa63af8dc769acf79cd497e741f1de9be31b</a></li>
<li><a href="https://github.com/sqlitebrowser/sqlitebrowser/issues/1209">https://github.com/sqlitebrowser/sqlitebrowser/issues/1209</a></li>
<li><a href="https://github.com/mumble-voip/mumble/issues/1585">https://github.com/mumble-voip/mumble/issues/1585</a></li>
<li><a href="https://community.amd.com/thread/209327">https://community.amd.com/thread/209327</a></li>
<li><a href="https://github.com/Mudlet/Mudlet/issues/1587">https://github.com/Mudlet/Mudlet/issues/1587</a></li>
<li><a href="https://github.com/MultiMC/MultiMC5/issues/1422">https://github.com/MultiMC/MultiMC5/issues/1422</a></li>
<li><a href="https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/">https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/</a></li>
</ul>
 </div>||||I|||| Ando's thoughts

 Ando's thoughts
 * Posts
 * Portfolio
 * About
 © 2020 Andrew Gutekanst CC BY-SA 4.0
 Built with Hugo ❤️ hyde-hyde.

 Resolving an unusual wifi issue

 Jun 28, 2020
 4 min read
 Table of Content
 * What?
 * Why?
 * Why!?
 * TL;DR
 * Related

 What?

 Late last year, I started experiencing some unusual intermittent connection issues on my Desktop. In general, I had a stable connection with average latency; however, at (seemingly) random times throughout the week, I would start experiencing sudden 2000ms+ latency spikes every couple of seconds.

 This made all audio/video calling software unusable and most online games unplayable.

 This issue appeared to line up with my cross-country move from Washington State to South Carolina, so there were too many factors to easily pinpoint the issue. However, as it mainly only effected gaming and audio/video calls, I didn’t put too much focus on it.

 Over the past couple of months I have (slowly) tried to figure out why this was happening, with little luck until today.

 Why?

 Initially, the only thing that was clear about the issue was that it was limited to my desktop computer only. My laptop and other devices connected to the wifi did not have this issue, even when placed in the exact same spot as the desktop.

 First, I purchased a new, highly-reviewed, wifi adapter on Amazon. It didn’t resolve the issue. It did, however, come with an offer for a free 64GB flash drive in exchange for a good reviews.

 (That was a pretty terrible purchase overall)

 Later, (for unrelated reasons) I built an entirely new desktop computer, not using anything from the old one, except the new wifi adapter. This included a fresh install of Windows 10.

 It was great, this new computer had no issues! I had suspected that my old motherboard’s USB ports might have been damaged during the move to SC, so that must have been the case. Everything is good now, right?

 No. Everything is not good now.

 A few weeks later, and the issue suddenly began happening on the new computer also, and I had no idea what the cause could be.

 I tried using multiple different wifi adapters that I owned.

 I tried changing the wifi channel, as it appeared to overlap a neighbors.

 I tried turning off Windows Update Delivery Optimization (p2p update sharing). After turning this off and restarting, the issue appeared to be resolved, but then reappeared later.

 At one point, my wifi issue even annoyed one of my brothers so badly, due to dropping Skype calls, that he bought me another (slightly less sketchy) wifi adapter on Amazon. This appeared to temporarily resolve the issue after installing the Realtek driver and restarting, but then it came back.

 Nothing seemed to work.

 Today, in a last-ditch desperate attempt at fixing the issue, I:

 * Turned off the box fan in my room
 * Unplugged my wireless Wacom drawing tablet’s USB dongle.
 * Closed FireFox
 * Closed MediBang Paint Pro

 The issue stopped.

 I immediately suspected interference from the wireless drawing tablet or box fan, so tried those again, but they were not the cause.

 I couldn’t possibly imagine how a web browser or drawing application could cause this, but I tried anyway.

 First I ran FireFox, opened multiple tabs on different sites, and waited…

 Nothing

 Then I ran MediBang Paint Pro.

 Why!?

 Why the hell would digital painting software cause wifi lag spikes?

 As it turns out, there are multiple instances of people complaining about this issue with MBPP.

 If we take a quick look with Process Monitor, we can see that it’s definitely doing something odd.

 At the exact same time the lag spikes occur, MBPP starts querying the registry keys for all of the network interfaces.

 To dig a bit deeper into why this is happening, we can attach to the process with a debugger (x64dbg here), and set breakpoints on the Win32 Reg* APIs.

 Eventually, our RegOpenKeyExInternalW breakpoint is hit, and we can take a look at the call stack to determine where this is being called.

 Looking at the call stack, we can see that first non-system library in the call stack is qt5network.

 Surprisingly, no more debugging is needed, as a quick google search for “q5network ping issue” will lead you to QTBUG-40332.

 If I understand correctly, any Qt5 (<5.14) application using QNetworkAccessManager will check for wifi interface changes every 10 seconds for the purpose of bearer management, causing massive lag spikes and/or packet drops entirely. Even if QNetworkAccessManager is instantiated internally for something simple, like an HTTP request.

 I suppose the workaround is simple enough, set the environment variable QT_BEARER_POLL_TIMEOUT to -1.

 I just wish I knew that around 8 months ago.

 TL;DR

 Qt5 has been crippling my wifi system-wide for past 7-8 months, just by running MediBang Paint Pro.

 I stupidly attributed it to many other things, because, honestly, who would expect Qt to be the cause of their system-wide wifi problems?

 Related

 * https://invent.kde.org/graphics/krita/-/commit/d4eaaa63af8dc769acf79cd497e741f1de9be31b
 * https://github.com/sqlitebrowser/sqlitebrowser/issues/1209
 * https://github.com/mumble-voip/mumble/issues/1585
 * https://community.amd.com/thread/209327
 * https://github.com/Mudlet/Mudlet/issues/1587
 * https://github.com/MultiMC/MultiMC5/issues/1422
 * https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/
 A Look at Angelic47's PyProtect
What?
Late last year, I started experiencing some unusual intermittent connection issues on my Desktop. In general, I had a stable connection with average latency; however, at (seemingly) random times throughout the week, I would start experiencing sudden 2000ms+ latency spikes every couple of seconds.
 
This made all audio/video calling software unusable and most online games unplayable.
This issue appeared to line up with my cross-country move from Washington State to South Carolina, so there were too many factors to easily pinpoint the issue. However, as it mainly only effected gaming and audio/video calls, I didn’t put too much focus on it.
Over the past couple of months I have (slowly) tried to figure out why this was happening, with little luck until today.
Why?
Initially, the only thing that was clear about the issue was that it was limited to my desktop computer only. My laptop and other devices connected to the wifi did not have this issue, even when placed in the exact same spot as the desktop.
First, I purchased a new, highly-reviewed, wifi adapter on Amazon. It didn’t resolve the issue. It did, however, come with an offer for a free 64GB flash drive in exchange for a good reviews.
(That was a pretty terrible purchase overall)
Later, (for unrelated reasons) I built an entirely new desktop computer, not using anything from the old one, except the new wifi adapter. This included a fresh install of Windows 10.
It was great, this new computer had no issues! I had suspected that my old motherboard’s USB ports might have been damaged during the move to SC, so that must have been the case. Everything is good now, right?
 No. Everything is not good now. 
A few weeks later, and the issue suddenly began happening on the new computer also, and I had no idea what the cause could be.
I tried using multiple different wifi adapters that I owned.
I tried changing the wifi channel, as it appeared to overlap a neighbors.
I tried turning off Windows Update Delivery Optimization (p2p update sharing). After turning this off and restarting, the issue appeared to be resolved, but then reappeared later.
At one point, my wifi issue even annoyed one of my brothers so badly, due to dropping Skype calls, that he bought me another (slightly less sketchy) wifi adapter on Amazon. This appeared to temporarily resolve the issue after installing the Realtek driver and restarting, but then it came back.
 
Nothing seemed to work.
Today, in a last-ditch desperate attempt at fixing the issue, I:
Turned off the box fan in my room
Unplugged my wireless Wacom drawing tablet’s USB dongle.
Closed FireFox
Closed MediBang Paint Pro
 The issue stopped. 
I immediately suspected interference from the wireless drawing tablet or box fan, so tried those again, but they were not the cause.
I couldn’t possibly imagine how a web browser or drawing application could cause this, but I tried anyway.
First I ran FireFox, opened multiple tabs on different sites, and waited…
Nothing
Then I ran MediBang Paint Pro.
 
Why!?
Why the hell would digital painting software cause wifi lag spikes?
As it turns out, there are multiple instances of people complaining about this issue with MBPP.
If we take a quick look with Process Monitor, we can see that it’s definitely doing something odd.
 
 
At the exact same time the lag spikes occur, MBPP starts querying the registry keys for all of the network interfaces.
To dig a bit deeper into why this is happening, we can attach to the process with a debugger (x64dbg here), and set breakpoints on the Win32 Reg* APIs.
 
Eventually, our RegOpenKeyExInternalW breakpoint is hit, and we can take a look at the call stack to determine where this is being called.
 
Looking at the call stack, we can see that first non-system library in the call stack is qt5network.
Surprisingly, no more debugging is needed, as a quick google search for “q5network ping issue” will lead you to QTBUG-40332.
If I understand correctly, any Qt5 (&lt;5.14) application using QNetworkAccessManager will check for wifi interface changes every 10 seconds for the purpose of bearer management, causing massive lag spikes and/or packet drops entirely. Even if QNetworkAccessManager is instantiated internally for something simple, like an HTTP request.
I suppose the workaround is simple enough, set the environment variable QT_BEARER_POLL_TIMEOUT to -1.
I just wish I knew that around 8 months ago.
TL;DR
Qt5 has been crippling my wifi system-wide for past 7-8 months, just by running MediBang Paint Pro.
I stupidly attributed it to many other things, because, honestly, who would expect Qt to be the cause of their system-wide wifi problems?
 https://invent.kde.org/graphics/krita/-/commit/d4eaaa63af8dc769acf79cd497e741f1de9be31b 
 https://github.com/sqlitebrowser/sqlitebrowser/issues/1209 
 https://github.com/mumble-voip/mumble/issues/1585 
 https://community.amd.com/thread/209327 
 https://github.com/Mudlet/Mudlet/issues/1587 
 https://github.com/MultiMC/MultiMC5/issues/1422 
 https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/
Resolving an unusual wifi issue
https://blog.ando.fyi/posts/diagnosing-an-unsual-wifi-issue/
https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/
Qt QNetworkAccessManager causing latency spikes on wifi - Lostdomain
2017-06-17
Martijn
<div><div>
<p>I don’t post a lot from my other life, the programming personality, most of my posts come from my adventures in virtualization. I have a bit more fun writing about virtualization than I do writing about programming, plus the number of coding blogs out there is enormous. But I’ve been troubleshooting an extremely hard to pin down issue with one of my applications (<a href="https://whatpulse.org/">WhatPulse</a>), where there would be a latency spike every 10 seconds (or less), only when primarily connected on wifi on Mac OS 10.12 (lower versions don’t seem affected). I’ve been pulling my hair on this because there was nothing to be found on it. Hence this contribution to the interwebs.</p>
<p>Pinging to your default gateway IP address looked like this:</p>
<p><a href="https://lostdomain.org/wp-content/uploads/2017/06/Screenshot-2017-06-17-21.05.57.png"></a></p>
<p>After digging a bit further and looking at the files being opened by the app, I discovered that the Mac OS network settings files were being opened during these latency spikes.</p>
<pre>Martijns-iMac:PowerShell martijn$ sudo opensnoop -ve 2&gt;&amp;1 | grep -i whatpulse
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /Library/Preferences/SystemConfiguration/preferences.plist 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 14 0 /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist 
2017 Jun 17 21:20:54 501 93561 WhatPulse -1 2 /Users/martijn/Library/Preferences/com.apple.eap.profiles.plist 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /Library/Preferences/SystemConfiguration/preferences.plist 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
^C
</pre>
<h2>Is it me?</h2>
<p>WhatPulse counts and graphs network traffic, so it has a pcap integration to get a copy of the headers of each network packet to analyse. Due to this feature, I naturally thought the latency spikes were related to my programming. After removing all modules of the application and basically leaving a GUI without any data services attached to it, the issue was still happening. So, removed more code. And then some more. The spikes were still happening. After the code carnage, I decided to rule out the application itself and went looking on the OS. Thus far only Mac OS 10.12 users had reported issues and I didn’t have a Windows instance connected wifi-only, so had to rely on other peoples tests.</p>
<p>Posts on the Apple forums mentioned some issues with similar symptoms, so I submitted a bug report to Apple. No response of course.</p>
<p>After a while and some more code carnage, I got to the point where I removed the last QNetworkAccessManager class from being instantiated and something wonderful happened; the latency spikes stopped.</p>
<p><a href="https://lostdomain.org/wp-content/uploads/2017/06/spongebob-miracle.jpg"></a></p>
<h2>No, no it isn’t.</h2>
<p>I could now focus the search on QNetworkAccessManager and these Qt bug reports reports turned up:</p>
<ul>
<li><a href="https://bugreports.qt.io/browse/QTBUG-40332">QTBUG-40332 – High ping when QNetworkAccessManager is instantiated</a></li>
<li><a href="https://bugreports.qt.io/browse/QTBUG-46015">QTBUG-46015 – QtNetwork WLAN poll causes transmission jitter</a></li>
</ul>
<h2>Cause</h2>
<p>It appears as the culprit is here: <a href="https://github.com/qt/qtbase/blob/5.9.0/src/network/bearer/qnetworkconfigmanager_p.cpp#L463">qtbase / src / network / bearer / qnetworkconfigmanager_p.cpp</a> </p>
<pre>void QNetworkConfigurationManagerPrivate::startPolling()
{
...
 int interval = qEnvironmentVariableIntValue("QT_BEARER_POLL_TIMEOUT", &amp;ok);
 if (!ok)
 interval = 10000;//default 10 seconds
 pollTimer-&gt;setInterval(interval);
 pollTimer-&gt;setSingleShot(true);
 connect(pollTimer, SIGNAL(timeout()), this, SLOT(pollEngines()));
...
}
</pre>
<p>This looks simple and harmless enough; just check for configuration changes on network connectivity. It’s supposed to be able to carry over network connections create in Qt to new connections if the connectivity changes. But here’s the thing; it basically rescans and reconnects your network connectivity when you’re on wifi. Hence the latency spikes, it’s a reconnection not bad enough to drop network packets, but bad enough to cause a latency spike and affect real-time network applications (like games).</p>
<h2>Work around</h2>
<p>The Qt bugs are still open (oldest one is from July 2014, so it’s probably never going to be fixed?!?), so there’s no permanent fix. I also didn’t have the motivation or time to dive into the Qt code itself to look for a fix. BUT, we can work around it. The timer that triggers the reconnects looks for the environment variable <strong>QT_BEARER_POLL_TIMEOUT</strong> as its timer interval. So we can set that environment variable to fix the latency spikes. I simply put this in my <strong>main()</strong>:</p>
<pre>// When QNetworkAccessManager is instantiated it regularly starts polling 
// all network interfaces to see if anything changes and if so, what. This 
// creates a latency spike every 10 seconds on Mac OS 10.12+ and Windows 7 &gt;=
// when on a wifi connection. 
// So here we disable it for lack of better measure.
// This will also cause this message: QObject::startTimer: Timers cannot 
// have negative intervals
// For more info see:
// - https://bugreports.qt.io/browse/QTBUG-40332
// - https://bugreports.qt.io/browse/QTBUG-46015
qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));
</pre>
<p>After doing so, the ping output looks much better:</p>
<p><a href="https://lostdomain.org/wp-content/uploads/2017/06/Screenshot-2017-06-17-21.03.13.png"></a></p>
<p>I hope this saves someone else the time I’ve put in to troubleshoot this. </p>
<h4>Share the wealth!</h4>
</div>||||I|||| Lostdomain

 
 Contact
 
 

 Submit
 Show menu Hide menu
 * About Me
 * vRealize Network Insight Cookbook
 * VMware NSX
 * Scripting
 + Scripting Posts
 + PowervRNI
 + UCS Inventory Script
 * Projects
 + Stream Deck Plugin for Zoom
 + vExpert Program
 + WhatPulse
 * Home Automation
 * Tools
 * VCIX-NV Study Guide
 * About Me
 * vRealize Network Insight Cookbook
 * VMware NSX
 * Scripting
 + Scripting Posts
 + PowervRNI
 + UCS Inventory Script
 * Projects
 + Stream Deck Plugin for Zoom
 + vExpert Program
 + WhatPulse
 * Home Automation
 * Tools
 * VCIX-NV Study Guide

 Tagcloud

 api AWS Backup cciedc Cisco cli Cookbook esg firewall IPv6 monitoring Netflow Network Insight Nexus nsx osx php PowerCLI PowerNSX PowerShell PowervRNI Python Scripting SD-WAN StreamDeck study guide troubleshoot troubleshooting ucs vcenter vcix-nv vcloud vcp VDS VeloCloud VMware vmworld vpc vpn vrealize vRealize Automation vRealize Network Insight vRNI vsphere WhatPulse

 Qt QNetworkAccessManager causing latency spikes on wifi

 June 17, 2017 / Martijn / 3 Comments

 I don’t post a lot from my other life, the programming personality, most of my posts come from my adventures in virtualization. I have a bit more fun writing about virtualization than I do writing about programming, plus the number of coding blogs out there is enormous. But I’ve been troubleshooting an extremely hard to pin down issue with one of my applications (WhatPulse), where there would be a latency spike every 10 seconds (or less), only when primarily connected on wifi on Mac OS 10.12 (lower versions don’t seem affected). I’ve been pulling my hair on this because there was nothing to be found on it. Hence this contribution to the interwebs.

 Pinging to your default gateway IP address looked like this:

 After digging a bit further and looking at the files being opened by the app, I discovered that the Mac OS network settings files were being opened during these latency spikes.

 Martijns-iMac:PowerShell martijn$ sudo opensnoop -ve 2>&1 | grep -i whatpulse
 2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /Library/Preferences/SystemConfiguration/preferences.plist 
 2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 14 0 /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist 
 2017 Jun 17 21:20:54 501 93561 WhatPulse -1 2 /Users/martijn/Library/Preferences/com.apple.eap.profiles.plist 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /Library/Preferences/SystemConfiguration/preferences.plist 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
 ^C
 

 Is it me?

 WhatPulse counts and graphs network traffic, so it has a pcap integration to get a copy of the headers of each network packet to analyse. Due to this feature, I naturally thought the latency spikes were related to my programming. After removing all modules of the application and basically leaving a GUI without any data services attached to it, the issue was still happening. So, removed more code. And then some more. The spikes were still happening. After the code carnage, I decided to rule out the application itself and went looking on the OS. Thus far only Mac OS 10.12 users had reported issues and I didn’t have a Windows instance connected wifi-only, so had to rely on other peoples tests.

 Posts on the Apple forums mentioned some issues with similar symptoms, so I submitted a bug report to Apple. No response of course.

 After a while and some more code carnage, I got to the point where I removed the last QNetworkAccessManager class from being instantiated and something wonderful happened; the latency spikes stopped.

 No, no it isn’t.

 I could now focus the search on QNetworkAccessManager and these Qt bug reports reports turned up:

 * QTBUG-40332 – High ping when QNetworkAccessManager is instantiated
 * QTBUG-46015 – QtNetwork WLAN poll causes transmission jitter

 Cause

 It appears as the culprit is here: qtbase / src / network / bearer / qnetworkconfigmanager_p.cpp

 void QNetworkConfigurationManagerPrivate::startPolling()
 {
 ...
 int interval = qEnvironmentVariableIntValue("QT_BEARER_POLL_TIMEOUT", &ok);
 if (!ok)
 interval = 10000;//default 10 seconds
 pollTimer->setInterval(interval);
 pollTimer->setSingleShot(true);
 connect(pollTimer, SIGNAL(timeout()), this, SLOT(pollEngines()));
 ...
 }
 

 This looks simple and harmless enough; just check for configuration changes on network connectivity. It’s supposed to be able to carry over network connections create in Qt to new connections if the connectivity changes. But here’s the thing; it basically rescans and reconnects your network connectivity when you’re on wifi. Hence the latency spikes, it’s a reconnection not bad enough to drop network packets, but bad enough to cause a latency spike and affect real-time network applications (like games).

 Work around

 The Qt bugs are still open (oldest one is from July 2014, so it’s probably never going to be fixed?!?), so there’s no permanent fix. I also didn’t have the motivation or time to dive into the Qt code itself to look for a fix. BUT, we can work around it. The timer that triggers the reconnects looks for the environment variable QT_BEARER_POLL_TIMEOUT as its timer interval. So we can set that environment variable to fix the latency spikes. I simply put this in my main():

 // When QNetworkAccessManager is instantiated it regularly starts polling 
 // all network interfaces to see if anything changes and if so, what. This 
 // creates a latency spike every 10 seconds on Mac OS 10.12+ and Windows 7 >=
 // when on a wifi connection. 
 // So here we disable it for lack of better measure.
 // This will also cause this message: QObject::startTimer: Timers cannot 
 // have negative intervals
 // For more info see:
 // - https://bugreports.qt.io/browse/QTBUG-40332
 // - https://bugreports.qt.io/browse/QTBUG-46015
 qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));
 

 After doing so, the ping output looks much better:

 I hope this saves someone else the time I’ve put in to troubleshoot this.



 Share the wealth!

 Categories: Stuff

 Tags: C++, Qt, WhatPulse

 « New VMware Fling – Autopology (Drag and Drop NSX Network Topologies? Yes Please!) Editing uneditable VMs in vCenter »

 3 Comments

 1. Frank Fleming

 July 14, 2017 at 23:00

 Bless you.

 Reply
 2. twisted89

 September 1, 2017 at 17:27

 Life saver, spend hours trying to work out why this random network freeze was happening!
 Thanks!

 Reply
 3. Chris

 November 1, 2017 at 18:11

 Considering how many applications use Qt, this is quite a major bug. Well done on digging into its cause and releasing a workaround. Appreciated.

 Reply

 Leave a Reply

 Your email address will not be published. Required fields are marked *

 Comment *

 Name *

 Email *

 Website

 Δ

 © 2023 Lostdomain

 Theme by Anders Norén — Up ↑

I don’t post a lot from my other life, the programming personality, most of my posts come from my adventures in virtualization. I have a bit more fun writing about virtualization than I do writing about programming, plus the number of coding blogs out there is enormous. But I’ve been troubleshooting an extremely hard to pin down issue with one of my applications (WhatPulse), where there would be a latency spike every 10 seconds (or less), only when primarily connected on wifi on Mac OS 10.12 (lower versions don’t seem affected). I’ve been pulling my hair on this because there was nothing to be found on it. Hence this contribution to the interwebs.
Pinging to your default gateway IP address looked like this:
   
After digging a bit further and looking at the files being opened by the app, I discovered that the Mac OS network settings files were being opened during these latency spikes.
Martijns-iMac:PowerShell martijn$ sudo opensnoop -ve 2&gt;&amp;1 | grep -i whatpulse
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /Library/Preferences/SystemConfiguration/preferences.plist 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:44 501 93561 WhatPulse 14 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 14 0 /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist 
2017 Jun 17 21:20:54 501 93561 WhatPulse -1 2 /Users/martijn/Library/Preferences/com.apple.eap.profiles.plist 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /Library/Preferences/SystemConfiguration/preferences.plist 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
2017 Jun 17 21:20:54 501 93561 WhatPulse 28 0 /System/Library/Frameworks/SystemConfiguration.framework/Resources/English.lproj/NetworkInterface.strings 
^C
Is it me?
WhatPulse counts and graphs network traffic, so it has a pcap integration to get a copy of the headers of each network packet to analyse. Due to this feature, I naturally thought the latency spikes were related to my programming. After removing all modules of the application and basically leaving a GUI without any data services attached to it, the issue was still happening. So, removed more code. And then some more. The spikes were still happening. After the code carnage, I decided to rule out the application itself and went looking on the OS. Thus far only Mac OS 10.12 users had reported issues and I didn’t have a Windows instance connected wifi-only, so had to rely on other peoples tests.
Posts on the Apple forums mentioned some issues with similar symptoms, so I submitted a bug report to Apple. No response of course.
After a while and some more code carnage, I got to the point where I removed the last QNetworkAccessManager class from being instantiated and something wonderful happened; the latency spikes stopped.
   
No, no it isn’t.
I could now focus the search on QNetworkAccessManager and these Qt bug reports reports turned up:
 QTBUG-40332 – High ping when QNetworkAccessManager is instantiated 
 QTBUG-46015 – QtNetwork WLAN poll causes transmission jitter 
Cause
It appears as the culprit is here: qtbase / src / network / bearer / qnetworkconfigmanager_p.cpp 
void QNetworkConfigurationManagerPrivate::startPolling()
{
...
 int interval = qEnvironmentVariableIntValue("QT_BEARER_POLL_TIMEOUT", &amp;ok);
 if (!ok)
 interval = 10000;//default 10 seconds
 pollTimer-&gt;setInterval(interval);
 pollTimer-&gt;setSingleShot(true);
 connect(pollTimer, SIGNAL(timeout()), this, SLOT(pollEngines()));
...
}
This looks simple and harmless enough; just check for configuration changes on network connectivity. It’s supposed to be able to carry over network connections create in Qt to new connections if the connectivity changes. But here’s the thing; it basically rescans and reconnects your network connectivity when you’re on wifi. Hence the latency spikes, it’s a reconnection not bad enough to drop network packets, but bad enough to cause a latency spike and affect real-time network applications (like games).
Work around
The Qt bugs are still open (oldest one is from July 2014, so it’s probably never going to be fixed?!?), so there’s no permanent fix. I also didn’t have the motivation or time to dive into the Qt code itself to look for a fix. BUT, we can work around it. The timer that triggers the reconnects looks for the environment variable QT_BEARER_POLL_TIMEOUT as its timer interval. So we can set that environment variable to fix the latency spikes. I simply put this in my main():
// When QNetworkAccessManager is instantiated it regularly starts polling 
// all network interfaces to see if anything changes and if so, what. This 
// creates a latency spike every 10 seconds on Mac OS 10.12+ and Windows 7 &gt;=
// when on a wifi connection. 
// So here we disable it for lack of better measure.
// This will also cause this message: QObject::startTimer: Timers cannot 
// have negative intervals
// For more info see:
// - https://bugreports.qt.io/browse/QTBUG-40332
// - https://bugreports.qt.io/browse/QTBUG-46015
qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1));
After doing so, the ping output looks much better:
   
I hope this saves someone else the time I’ve put in to troubleshoot this. 
Share the wealth!
Qt QNetworkAccessManager causing latency spikes on wifi - Lostdomain
https://lostdomain.org/2017/06/17/qt-qnetworkaccessmanager-causing-latency-spikes-on-wifi/
https://support.microsoft.com/en-us/windows/fix-wi-fi-connection-issues-in-windows-9424a1f7-6a3b-65a6-4d78-7f07eee84d2c#:~:text=common%20connection%20problems.-,To%20run%20the%20Network%20troubleshooter,%3E%20Network%20%26%20Internet%20%3E%20Status.&text=Under%20Change%20your%20network%20settings,if%20that%20fixes%20the%20problem
Fix Wi-Fi connection issues in Windows
2023-01-01
None
<div><article><section>
 <h2>Troubleshooting network problems in Windows</h2>
 
 <p>If you can’t get email, browse the web, or stream music, chances are you’re not connected to your network and can’t get onto the internet. To fix the problem, here are some things you can try.</p>
 
 <div>
 <div>
 
 
 <section>
 <h3>Things to try first</h3>
 
 <p>Try these things first to help you fix or narrow down the connection problem.</p>
 <ul>
 <li>
 <p>Make sure Wi‑Fi is turned on. Select the "No internet connection" icon on the right side of the taskbar, and make sure Wi-Fi is turned on. If it isn't, select it to turn it on. Also, make sure <b>Airplane mode</b> is turned off.</p>
 
 </li>
 <li>
 <p>Select <b>Manage Wi-Fi connections </b>(<b>&gt;</b>) on the <b>Wi-Fi </b>quick setting, see if a Wi-Fi network you recognize and trust appears in the list of networks. If it does, select the Wi-Fi network, and they try to connect to it. If it says <b>Connected </b>underneath the network name, select <b>Disconnect</b>, wait a moment, and then select <b>Connect </b>again.</p>
 
 </li>
 <li>
 <p>Try connecting to a network on a different frequency band. Many consumer Wi-Fi routers broadcast at two different network frequency bands: 2.4 GHz and 5 GHz. These will appear as separate networks in the list of available Wi-Fi networks. If your list of available Wi-Fi networks includes both a 2.4 GHz network and a 5 GHz network, try connecting to the other network. To learn more about the differences between 2.4 GHz networks and 5 GHz networks, check out <a href="https://support.microsoft.com/help/4000461">Wi-Fi problems and your home layout</a>.</p>
 
 </li>
 <li>
 <p>Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)</p>
 
 </li>
 <li>
 <p>Run the Network troubleshooter. The Network troubleshooter can help diagnose and fix common connection problems.</p>
 
 </li>
 </ul>
 <p>
 <b>To run the Network troubleshooter</b>
 </p>
 <ol>
 <li>
 <p>Select <b>Start </b> &gt; <b>Settings </b> &gt; <b>System </b> &gt; <b>Troubleshoot </b> &gt; <b>Other troubleshooters </b>.</p>
 
 </li>
 <li>
 <p>Under <b>Other</b>, select <b>Network Adapter </b>&gt; <b>Run</b>.</p>
 
 </li>
 <li>
 <p>Follow the steps in the troubleshooter and see if that fixes the problem.</p>
 
 </li>
 </ol>
 <ul>
 <li>
 <div><p>Restart your modem and wireless router. This helps create a new connection to your internet service provider (ISP).</p><p>
	When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected. The steps you take to restart your modem and router can vary, but here are the general steps.</p></div>
 
 </li>
 </ul>
 <p><b>Note: </b>If you have a cable modem/Wi-Fi router combo device, you only need to follow the steps for the single device.</p>
 <ol>
 <li>
 <p>Unplug the power cable for the router from the power source.</p>
 
 </li>
 <li>
 <div><p>Unplug the power cable for the modem from the power source.  </p><p>
	Some modems have a backup battery. If you unplug the modem and lights stay on, remove the battery from the modem.</p></div>
 
 </li>
 <li>
 <div><p>Wait at least 30 seconds or so.</p><p>
	If you had to remove the battery from the modem, put it back in.</p></div>
 
 </li>
 <li>
 <p>Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.</p>
 
 </li>
 <li>
 <div><p>Plug your router back into the power source.</p><p>
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.</p></div>
 
 </li>
 <li>
 <p>On your PC, try to connect again.</p>
 
 </li>
 </ol>
 
 </section>
 <div>
 <h3></h3>
 <div>
 <p>Connection problems can be due to a variety of reasons—problems with the website, your device, the Wi-Fi router, modem, or your Internet Service Provider (ISP). Try the following steps to help narrow down the source of the problem.</p>
 <ol>
 <li>
 <p>If the "Wi-Fi connected" icon  appears on the right side of the taskbar, visit a different website. If the website opens, there might be a problem with the specific website. If you can't connect to another website, go to the next step.</p>
 
 </li>
 <li>
 <p>On another laptop or phone, try to connect to the same network. If you can connect, the source of the problem is likely due to your device—go to the section <a href="https://support.microsoft.com/en-us/windows/fix-wi-fi-connection-issues-in-windows-9424a1f7-6a3b-65a6-4d78-7f07eee84d2c#bkmk_devicetroubleshooting">Network troubleshooting on your device</a>. If you can't connect to the network on any device, continue to the next step.</p>
 
 </li>
 <li>
 <p>Check to see if there is a problem with the connection to your Wi-Fi router. Do this by using a ping test.</p>
 <ol>
 <li>
 <p>Select <b>Search </b> on the taskbar, and type <b>command prompt</b>. The <b>Command Prompt </b>button will appear. To the right of it, select <b>Run as administrator </b>&gt; <b>Yes</b>.</p>
 
 </li>
 <li>
 <p>At the command prompt, type <b>ipconfig</b>, and then select <b>Enter</b>. Look for the name of your Wi-Fi network within the results, and then find the IP address listed next to <b>Default gateway </b>for that Wi-Fi network.  Write down that address if you need to. <i>For example:  192.168.1.1</i></p>
 
 </li>
 <li>
 <p>At the prompt, type <b>ping &lt;DefaultGateway&gt;</b> and then select <b>Enter</b>.  <i>For example, type <b>ping 192.168.1.1</b> and select <b>Enter</b>. </i> The results should be something like this:</p>
 
 </li>
 </ol>
 
 </li>
 </ol>
 <ul>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 
 </li>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 
 </li>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 
 </li>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 
 </li>
 <li>
 <p>
 <i>Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:  Minimum = 4ms, Maximum = 5ms, Average = 4ms</i>
 </p>
 
 </li>
 </ul>
 <p>If you see results like this and are getting a reply, then you have a connection to your Wi-Fi router, so there might be a problem with your modem or ISP. Contact your ISP or check online on another device (if you can) to see if there's a service outage.</p>
 <p>If the results of the ping test indicate that you are not getting a reply from the router, try connecting your PC directly to your modem by using an Ethernet cable (if you can). If you can connect to the internet using an Ethernet cable, it confirms the connection problem is due to the Wi-Fi router. Make sure you've installed the latest firmware and see the documentation for your router.</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>
 <b>Run network commands</b>
 </p>
 <p>Try running these network commands to manually reset the TCP/IP stack, release and renew the IP address, and flush and reset the DNS client resolver cache:</p>
 <ol>
 <li>
 <p>Select <b>Search </b> on the taskbar, and type <b>command prompt</b>. The <b>Command Prompt </b>button will appear. To the right of it, select <b>Run as administrator </b>&gt; <b>Yes</b>.</p>
 
 </li>
 <li>
 <p>At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:</p>
 <ul>
 <li>
 <p>Type <b>netsh winsock reset</b> and select<b> </b><b>Enter</b><b>.</b></p>
 
 </li>
 <li>
 <p>Type <b>netsh int ip reset</b> and select <b>Enter</b>.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /release</b> and select <b>Enter</b>.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /renew</b> and select <b>Enter</b>.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /flushdns</b> and select <b>Enter</b>.</p>
 
 </li>
 </ul>
 
 </li>
 </ol>
 <p>
 <b>Uninstall the network adapter driver and restart</b>
 </p>
 <p>If the previous steps didn’t work, try to uninstall the network adapter driver, and then restart your computer. Windows will automatically install the latest driver. Consider this approach if your network connection stopped working properly after a recent update.</p>
 <p>Before uninstalling, make sure you have drivers available as a backup. Visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.</p>
 <ol>
 <li>
 <p>Select <b>Search </b> on the taskbar, type <b>device manager</b>, and then select <b>Device Manager</b> from the list of results.</p>
 
 </li>
 <li>
 <p>Expand <b>Network adapters</b>, and locate the network adapter for your device.</p>
 
 </li>
 <li>
 <p>Select the network adapter, press and hold (or right-click), and then select <b>Uninstall device</b> &gt; check the <b>Attempt to remove the driver for this device</b> check box &gt; <b>Uninstall</b>.</p>
 
 </li>
 <li>
 <p>After uninstalling the driver, select <b>Start </b> &gt; <b>Power </b> &gt; <b>Restart </b>.</p>
 
 </li>
 </ol>
 <p>After your PC restarts, Windows will automatically look for and install the network adapter driver. Check to see if that fixes your connection problem. If Windows doesn't automatically install a driver, try to install the backup driver you saved before uninstalling.</p>
 <p>
 <b>Check if your network adapter is compatible with the latest Windows Update</b>
 </p>
 <p>If you lost your network connection immediately after upgrading to or updating Windows 11, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update:</p>
 <ol>
 <li>
 <p>Select <b>Start </b> &gt; <b>Settings </b> &gt;<b> </b><b>Windows Update </b> &gt; <b>Update history </b> &gt; <b>Uninstall updates </b>.</p>
 
 </li>
 <li>
 <p>Select the most recent update, then select <b>Uninstall</b>.</p>
 
 </li>
 </ol>
 <p>If uninstalling the most recent update restores your network connection, check to see if an updated driver is available:</p>
 <ol>
 <li>
 <p>Select <b>Search </b> on the taskbar, type <b>device manager</b>, and then select <b>Device Manager</b> from the list of results.</p>
 
 </li>
 <li>
 <p>Expand <b>Network adapters</b>, and locate the network adapter for your device.</p>
 
 </li>
 <li>
 <p>Select the network adapter, press and hold (or right-click), then select <b>Update driver </b>&gt; <b>Search automatically for updated driver software</b>, and then follow the instructions.</p>
 
 </li>
 <li>
 <p>After installing the updated driver, select <b>Start </b> &gt; <b>Power </b> &gt; <b>Restart </b> if you're asked to restart, and see if that fixes the connection issue.</p>
 
 </li>
 </ol>
 <p>If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. You’ll need to know the PC manufacturer and model name or number.</p>
 <p>Do one of the following:</p>
 <ul>
 <li>
 <p>If you couldn’t download and install a newer network adapter driver, hide the update that’s causing you to lose your network connection. To learn how to hide updates, see <a href="https://support.microsoft.com/help/4026726">Hide Windows Updates or driver updates</a>.</p>
 
 </li>
 <li>
 <p>If you could successfully install updated drivers for your network adapter, then reinstall the latest updates. To do this, select <b>Start </b> &gt; <b>Settings </b> &gt; <b>Windows Update </b> &gt; <b>Check for updates</b>.</p>
 
 </li>
 </ul>
 <p>
 <b>Use network reset</b>
 </p>
 <p>Using network reset should be the last step you try. Consider using it if the steps above don’t help to get you connected.</p>
 <p>This can help solve connection problems you might have after upgrading from Windows 10 to Windows 11. It can also help to fix the problem where you can connect to the internet, but can't connect to shared network drives. Network reset removes any network adapters you have installed and the settings for them. After your PC restarts, any network adapters are reinstalled, and the settings for them are set to the defaults.</p>
 <ol>
 <li>
 <p>Select <b>Start </b> &gt; <b>Settings </b> &gt; <b>Network &amp; internet </b> &gt; <b>Advanced network settings </b>&gt; <b>Network reset</b>.<br /><a>Open Network &amp; Internet Status settings</a></p>
 
 </li>
 <li>
 <p>On the <b>Network reset</b> screen, select <b>Reset now </b>&gt; <b>Yes </b>to confirm.</p>
 
 </li>
 </ol>
 <p>Wait for your PC to restart, and see if that fixes the problem.</p>
 <div>
 <p><b>Notes: </b></p>
 <ul>
 <li>
 <p>After using network reset, you might need to reinstall and set up other networking software you might be using, such as VPN client software or virtual switches from Hyper‑V (if you're using that or other network virtualization software).</p>
 
 </li>
 <li>
 <p>Network reset might set each one of your known network connections to a public network profile. In a public network profile, your PC is not discoverable to other PCs and devices on the network, which can help make your PC more secure. However, if your PC is used for file or printer sharing, you’ll need to make your PC discoverable again by setting it to use a private network profile. To do this, select <b>Start </b> &gt; <b>Settings </b> &gt; <b>Network &amp; internet </b> &gt; <b>Wi-Fi </b> . On the <b>Wi-Fi</b> screen, select <b>Manage known networks </b>&gt; the network connection you want to change. Under <b>Network profile type</b>, select <b>Private</b>.</p>
 
 </li>
 </ul>
 </div>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>
 <b>Check your Wi-Fi settings</b>
 </p>
 <p>Wi-Fi adapter manufacturers might have different advanced settings you can change based on your network environment or connection preferences.</p>
 <p>Check the Wireless Mode setting for your network adapter and make sure it matches the capabilities of the network you’re trying to connect to. If it doesn’t match, you won’t be able to connect, and the network might not appear in the list of available networks. The Wireless Mode will often be set to Auto or something similar by default, which enables connection for every kind of network that’s supported.</p>
 <p>
 <b>To find the wireless mode setting</b>
 </p>
 <ol>
 <li>
 <p>In Device Manager, select <b>Network adapters</b>, and then double-click the network adapter name.</p>
 
 </li>
 <li>
 <p>Select the <b>Advanced </b>tab and look for a <b>Wireless Mode</b> setting. Make sure it’s set to the mode your network is using.</p>
 
 </li>
 </ol>
 <p>
 <b>Wi-Fi profile settings</b>
 </p>
 <p>Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.</p>
 <p>To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.</p>
 <p>
 <b>To forget a network</b>
 </p>
 <ol>
 <li>
 <p>Select <b>Start </b> &gt; <b>Settings </b> &gt; <b>Network &amp; internet </b>.</p>
 
 </li>
 <li>
 <p>Select <b>Wi-Fi </b>, then select <b>Manage known networks</b>.</p>
 
 </li>
 <li>
 <p>Select the network you want to forget, then select <b>Forget</b>.</p>
 
 </li>
 </ol>
 <p>Afterwards, select the <b>Wi-Fi</b> icon on the taskbar and try to reconnect to the network to renew the network connection.</p>
 <p>
 <b>Check your home layout</b>
 </p>
 <p>Your Wi-Fi network might be affected by the network's frequency band, channel congestion, and/or signal strength.  For more info, see <a href="https://support.microsoft.com/help/4000461">Wi-Fi problems and your home layout</a>.</p>
 <p>Check for additional symptoms for the "No internet connection" icon.</p>
 <p>There may be additional troubleshooting steps you can try, depending on which symptoms you're having. To view these steps, check out <a href="https://support.microsoft.com/help/4000459">Wi-Fi connection icons and what they mean</a>.</p>
 <p>
 <b>Related topics</b>
 </p>
 <ul>
 <li>
 <p>
 <a href="https://support.microsoft.com/en-us/windows/setting-up-a-wireless-network-97914e31-3aa4-406d-cef6-f1629e2c3721">Setting up a wireless network</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/en-us/windows/find-your-wi-fi-network-password-in-windows-2ec74b2e-d9ec-ade1-cc9b-bef1429cb678">How to find your wireless network password</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/help/4000462">Analyze the wireless network report</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/help/4000463/windows-10-wifi-tools-apps">Wi-Fi tools and apps</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/help/4043043/windows-10-make-network-public-private">Make a Wi-Fi network public or private in Windows</a>
 </p>
 
 </li>
 </ul>
 
 </div>
 </div>
 
 </div>
 <section>
 <h3>Things to try first</h3>
 
 <p>Try these things first to help you fix or narrow down the connection problem.</p>
 <ul>
 <li>
 <p>Make sure Wi‑Fi is turned on. Select the "No internet connection" icon on the right side of the taskbar, and make sure Wi-Fi is turned on. If it isn't, select it to turn it on. Also, make sure <b>Airplane mode</b> is turned off.</p>
 <p>
 
 </p>
 
 </li>
 </ul>
 <ul>
 <li>
 <p>Afterwards, see if a Wi-Fi network you recognize and trust appears in the list of networks. If it does, select the Wi-Fi network, and they try to connect to it. If it says <i>Connected</i> underneath the network name, select <b>Disconnect</b>, wait a moment, and then select <b>Connect </b>again.</p>
 
 </li>
 <li>
 <p>Try connecting to a network on a different frequency band. Many consumer Wi-Fi routers broadcast at two different network frequency bands:  2.4 GHz and 5 GHz. These will appear as separate networks in the list of available Wi-Fi networks. If your list of available Wi-Fi networks includes both a 2.4 GHz network and a 5 GHz network, try connecting to the other network. To learn more about the differences between 2.4 GHz networks and 5 GHz networks, check out <a href="https://support.microsoft.com/help/4000461">Wi-Fi problems and your home layout</a>.</p>
 
 </li>
 <li>
 <p>Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)</p>
 
 </li>
 <li>
 <p>Run the Network troubleshooter. The Network troubleshooter can help diagnose and fix common connection problems.</p>
 
 </li>
 </ul>
 <p>
 <b>To run the Network troubleshooter</b>
 </p>
 <ol>
 <li>
 <p>Select the <b>Start </b><b></b> button &gt; <b>Settings </b>&gt; <b>Network &amp; Internet </b>&gt; <b>Status</b>.<br /><a>Open Network &amp; Internet Status settings</a></p>
 
 </li>
 <li>
 <p>Under <b>Change your network settings</b>, select <b>Network troubleshooter</b>.</p>
 
 </li>
 <li>
 <p>Follow the steps in the troubleshooter, and see if that fixes the problem.</p>
 
 </li>
 </ol>
 <ul>
 <li>
 <p>Restart your modem and wireless router. This helps create a new connection to your internet service provider (ISP).</p>
 <p>
 <br />
	When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected. The steps you take to restart your modem and router can vary, but here are the general steps. (<b>Note</b>: If you have a cable modem/Wi-Fi router combo device, you only need to follow the steps for the single device.)</p>
 <ol>
 <li>
 <p>Unplug the power cable for the router from the power source.</p>
 
 </li>
 <li>
 <div><p>Unplug the power cable for the modem from the power source.  </p><p>
	Some modems have a backup battery. If you unplug the modem and lights stay on, remove the battery from the modem.</p></div>
 
 </li>
 <li>
 <div><p>Wait at least 30 seconds or so.</p><p>
	If you had to remove the battery from the modem, put it back in.</p></div>
 
 </li>
 <li>
 <p>Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.</p>
 
 </li>
 <li>
 <div><p>Plug your router back into the power source.</p><p>
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.</p></div>
 
 </li>
 <li>
 <p>On your PC, try to connect again.</p>
 
 </li>
 </ol>
 
 </li>
 </ul>
 
 
 <div>
 <h4></h4>
 <div>
 <p>Connection problems can be due to a variety of reasons—problems with the website, your device, the Wi-Fi router, modem, or your Internet Service Provider (ISP). Try the following steps to help narrow down the source of the problem.</p>
 <ol>
 <li>
 <p>If the "Wi-Fi connected" icon  appears on the right side of the taskbar, visit a different website. If the website opens, there might be a problem with the specific website. If you can't connect to another website, go to the next step.</p>
 
 </li>
 <li>
 <p>On another laptop or phone, try to connect to the same network. If you can connect, the source of the problem is likely due to your device—go to the section <a href="#bkmk_devicetroubleshooting">Network troubleshooting on your device</a>. If you can't connect to the network on any device, continue to the next step.</p>
 
 </li>
 <li>
 <p>Check to see if there is a problem with the connection to your Wi-Fi router.  Do this by using a ping test.</p>
 <ol>
 <li>
 <p>In the search box on the taskbar, type <b>command prompt</b>. The <b>Command Prompt</b> button will appear. To the right of it, select <b>Run as administrator</b> &gt; <b>Yes</b>.</p>
 
 </li>
 <li>
 <p>At the command prompt, type <b>ipconfig</b>, and then select <b>Enter</b>. Look for the name of your Wi-Fi network within the results, and then find the IP address listed next to <b>Default gateway</b> for that Wi-Fi network.  Write down that address if you need to. <i>For example:  192.168.1.1</i></p>
 
 </li>
 <li>
 <p>At the prompt, type <b>ping &lt;DefaultGateway&gt;</b> and then select <b>Enter</b>.  <i>For example, type <b>ping 192.168.1.1</b> and select <b>Enter</b>. </i> The results should be something like this:</p>
 
 </li>
 </ol>
 
 </li>
 </ol>
 <ul>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 </li>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 </li>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 </li>
 <li>
 <p>
 <i>Reply from 192.168.1.1: bytes=32 time=5ms TTL=64</i>
 </p>
 </li>
 <li>
 <p>
 <i>Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:  Minimum = 4ms, Maximum = 5ms, Average = 4ms</i>
 </p>
 </li>
 </ul>
 <p>If you see results like this and are getting a reply, then you have a connection to your Wi-Fi router, so there might be a problem with your modem or ISP. Contact your ISP or check online on another device (if you can) to see if there's a service outage.</p>
 <p>If the results of the ping test indicate that you are not getting a reply from the router, try connecting your PC directly to your modem by using an Ethernet cable (if you can). If you can connect to the internet using an Ethernet cable, it confirms the connection problem is due to the Wi-Fi router. Make sure you've installed the latest firmware and see the documentation for your router.</p>
 </div>
 </div>
 <div>
 <h4></h4>
 <div>
 <p>
 <b>Run network commands</b>
 </p>
 <p>Try running these network commands to manually reset the TCP/IP stack, release and renew the IP address, and flush and reset the DNS client resolver cache:</p>
 <ol>
 <li>
 <p>In the search box on the taskbar, type <b>command prompt</b>. The <b>Command Prompt</b> button will appear. To the right of it, select <b>Run as administrator </b>&gt; <b>Yes</b>.</p>
 
 </li>
 <li>
 <p>At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:</p>
 <ul>
 <li>
 <p>Type <b>netsh winsock reset</b> and select<b>Enter</b><b>.</b></p>
 
 </li>
 <li>
 <p>Type <b>netsh int ip reset</b> and select <b>Enter</b>.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /release</b> and select <b>Enter</b>.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /renew</b> and select <b>Enter</b>.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /flushdns</b> and select <b>Enter</b>.</p>
 
 </li>
 </ul>
 
 </li>
 </ol>
 <p>
 <b>Uninstall the network adapter driver and restart</b>
 </p>
 <p>If the previous steps didn’t work, try to uninstall the network adapter driver, and then restart your computer. Windows will automatically install the latest driver. Consider this approach if your network connection stopped working properly after a recent update.</p>
 <p>Before uninstalling, make sure you have drivers available as a backup. Visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.</p>
 <ol>
 <li>
 <p>In the search box on the taskbar, type <b>device manager</b>, and then select <b>Device Manager</b> from the list of results.</p>
 
 </li>
 <li>
 <p>Expand <b>Network adapters</b>, and locate the network adapter for your device.</p>
 
 </li>
 <li>
 <p>Select the network adapter, press and hold (or right-click), and then select <b>Uninstall device </b>&gt; check the <b>Attempt to remove the driver software for this device</b> check box &gt; <b>Uninstall</b>.</p>
 
 </li>
 <li>
 <p>After uninstalling the driver, select the <b>Start </b> button &gt; <b>Power </b> &gt; <b>Restart</b>.</p>
 <p>After your PC restarts, Windows will automatically look for and install the network adapter driver. Check to see if that fixes your connection problem. If Windows doesn't automatically install a driver, try to install the backup driver you saved before uninstalling.</p>
 
 </li>
 </ol>
 <p>
 <b>Check if your network adapter is compatible with the latest Windows Update</b>
 </p>
 <p>If you lost your network connection immediately after upgrading or updating Windows 10, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update:</p>
 <ol>
 <li>
 <p>Select the <b>Start </b> button, then select <b>Settings </b><b></b> &gt; <b>Update &amp; Security</b><b> </b>&gt;<b>Windows Update </b><b></b> &gt; <b>View update history </b>&gt;<b>Uninstall updates</b>.</p>
 
 </li>
 <li>
 <p>Select the most recent update, then select <b>Uninstall</b>.</p>
 
 </li>
 </ol>
 <p>If uninstalling the most recent update restores your network connection, check to see if an updated driver is available:</p>
 <ol>
 <li>
 <p>In the search box on the taskbar, type <b>device manager</b>, and then select <b>Device Manager</b> from the list of results.</p>
 
 </li>
 <li>
 <p>Expand <b>Network adapters</b>, and locate the network adapter for your device.</p>
 
 </li>
 <li>
 <p>Select the network adapter, select <b>Update driver </b>&gt;<b>Search automatically for updated driver software</b>, and then follow the instructions.</p>
 
 </li>
 <li>
 <p>After installing the updated driver, select the <b>Start </b> button &gt; <b>Power </b> &gt; <b>Restart </b>if you're asked to restart, and see if that fixes the connection issue.</p>
 
 </li>
 </ol>
 <p>If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. You’ll need to know the PC manufacturer and model name or number.</p>
 <p>Do one of the following:</p>
 <ul>
 <li>
 <p>If you couldn’t download and install a newer network adapter driver, hide the update that’s causing you to lose your network connection. To learn how to hide updates, see <a href="https://support.microsoft.com/help/4026726">Hide Windows Updates or driver updates</a>.</p>
 
 </li>
 <li>
 <p>If you could successfully install updated drivers for your network adapter, then reinstall the latest updates. To do this, select the <b>Start </b> button, then select <b>Settings </b> &gt; <b>Update &amp; Security </b> &gt; <b>Windows Update </b> &gt; <b>Check for updates</b>.</p>
 
 </li>
 </ul>
 
 <p>
 <b>Use network reset</b>
 </p>
 <p>Using network reset should be the last step you try. Consider using it if the steps above don’t help to get you connected.</p>
 <p>This can help solve connection problems you might have after upgrading from a previous version of Windows to Windows 10. It can also help to fix the problem where you can connect to the internet, but can't connect to shared network drives. Network reset removes any network adapters you have installed and the settings for them. After your PC restarts, any network adapters are reinstalled, and the settings for them are set to the defaults.</p>
 <p><b>Note: </b>To use network reset, your PC must be running Windows 10 Version 1607 or later. To see which version of Windows 10 your device is currently running, select the <b>Start</b> button, then select <b>Settings</b> &gt; <b>System </b>&gt; <b>About</b>.</p>
 <ol>
 <li>
 <p>Select the <b>Start </b> button, then select <b>Settings </b><b></b> &gt; <b>Network &amp; Internet </b> &gt; <b>Status</b> &gt; <b>Network reset</b>.<br /><a>Open Network &amp; Internet Status settings</a></p>
 
 </li>
 <li>
 <p>On the <b>Network reset</b> screen, select <b>Reset now </b>&gt; <b>Yes </b>to confirm.</p>
 <p>Wait for your PC to restart, and see if that fixes the problem.</p>
 
 </li>
 </ol>
 <div>
 <p><b>Notes: </b></p>
 <ul>
 <li>
 <p>After using network reset, you might need to reinstall and set up other networking software you might be using, such as VPN client software or virtual switches from Hyper‑V (if you're using that or other network virtualization software).</p>
 </li>
 <li>
 <p>Network reset might set each one of your known network connections to a public network profile. In a public network profile, your PC is not discoverable to other PCs and devices on the network, which can help make your PC more secure. However, if your PC is used for file or printer sharing, you’ll need to make your PC discoverable again by setting it to use a private network profile. To do this, select the <b>Start </b> button, then select <b>Settings </b> &gt; <b>Network &amp; Internet </b> &gt; <b>Wi-Fi </b><b></b>. On the <b>Wi-Fi</b> screen, select <b>Manage known networks </b>&gt; the network connection you want to change &gt; <b>Properties</b>. Under <b>Network profile</b>, select <b>Private</b>.</p>
 </li>
 </ul>
 </div>
 </div>
 </div>
 <div>
 <h4></h4>
 <div>
 <p>
 <b>Check your Wi-Fi settings</b>
 </p>
 <p>Wi-Fi adapter manufacturers might have different advanced settings you can change based on your network environment or connection preferences.</p>
 <p>Check the Wireless Mode setting for your network adapter and make sure it matches the capabilities of the network you’re trying to connect to. If it doesn’t match, you won’t be able to connect, and the network might not appear in the list of available networks. The Wireless Mode will often be set to Auto or something similar by default, which enables connection for every kind of network that’s supported.</p>
 <p>
 <b>To find the wireless mode setting</b>
 </p>
 <ol>
 <li>
 <p>In Device Manager, select <b>Network adapters</b>, and then double-click the network adapter name.</p>
 
 </li>
 <li>
 <p>Select the <b>Advanced </b>tab and look for a <b>Wireless Mode</b> setting. Make sure it’s set to the mode your network is using.</p>
 
 </li>
 </ol>
 <p>
 <b>Wi-Fi profile settings</b>
 </p>
 <p>Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.</p>
 <p>To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.</p>
 <p>
 <b>To forget a network</b>
 </p>
 <ol>
 <li>
 <p>Select the <b>Wi-Fi network </b> icon on the right side of the taskbar, then select <b>Network &amp; Internet settings</b>.</p>
 
 </li>
 <li>
 <p>Select <b>Wi-Fi </b><b></b>, then select <b>Manage known networks</b>.</p>
 
 </li>
 <li>
 <p>Select the network you want to forget, then select <b>Forget</b>.</p>
 
 </li>
 </ol>
 <p>Afterwards, select the Wi-Fi icon on the taskbar and try to reconnect to the desired network to renew the network connection.</p>
 <p>
 <b>Check your home layout</b>
 </p>
 <p>Your Wi-Fi network might be affected by the network's frequency band, channel congestion, and/or signal strength.  For more info, see <a href="https://support.microsoft.com/help/4000461">Wi-Fi problems and your home layout</a>.</p>
 <p>Check for additional symptoms for the "No internet connection" icon  </p>
 <p>There may be additional troubleshooting steps you can try, depending on which symptoms you're having. To view these steps, check out <a href="https://support.microsoft.com/help/4000459">Wi-Fi connection icons and what they mean</a>.</p>
 <p>
 <b>Related topics</b>
 </p>
 <ul>
 <li>
 <p>
 <a href="/en-us/windows/setting-up-a-wireless-network-in-windows-97914e31-3aa4-406d-cef6-f1629e2c3721">Setting up a wireless network</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="/en-us/windows/find-your-wi-fi-network-password-in-windows-2ec74b2e-d9ec-ade1-cc9b-bef1429cb678">How to find your wireless network password</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/help/4000462">Analyze the wireless network report</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/help/4000463/windows-10-wifi-tools-apps">Wi-Fi tools and apps</a>
 </p>
 
 </li>
 <li>
 <p>
 <a href="https://support.microsoft.com/help/4043043/windows-10-make-network-public-private">Make a Wi-Fi network public or private in Windows 10</a>
 </p>
 
 </li>
 </ul>
 </div>
 </div>
 
 </section>
 <div>
 
 
 <div>
 <h3></h3>
 <div>
 <ul>
 <li>
 <p>Make sure Wi-Fi is turned on.</p>
 <ol>
 <li>
 <p>Swipe in from the right edge of the screen, select <b>Settings</b>, then select the <b>Network</b> icon.</p>
 
 </li>
 <li>
 <p>Turn on <b>Wi-Fi</b>.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)</p>
 
 </li>
 <li>
 <p>Make sure your PC isn’t in airplane mode.</p>
 <ol>
 <li>
 <p>Swipe in from the right edge of the screen, select <b>Settings</b>, then select the <b>Network</b> icon.</p>
 
 </li>
 <li>
 <p>Turn off <b>Airplane mode</b>.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>Move closer to the router or access point if you can.</p>
 
 </li>
 <li>
 <p>If you don’t see the network name at all, the router or access point might not be set to broadcast the network name. In this case, you’ll need to connect to it manually.</p>
 <ol>
 <li>
 <p>Swipe in from the right edge of the screen, and then select <b>Settings</b>.</p>
 
 </li>
 <li>
 <p>Select the <b>Network</b> icon, and then select <b>Hidden network</b>.</p>
 
 </li>
 <li>
 <p>Type the network name and select <b>Next</b>.</p>
 
 </li>
 <li>
 <p>Type the password and select <b>Next</b>.</p>
 
 </li>
 <li>
 <p>Follow any additional instructions to get connected.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>The network will be added to your list of networks and will be available to connect to when your computer is in range of the network. To connect to the network, follow these steps:</p>
 <ol>
 <li>
 <p>Open <b>Connect to a Network</b> by selecting the network icon in the notification area.</p>
 
 </li>
 <li>
 <p>Select <b>Unnamed Network</b>, select <b>Connect</b>, and then type the network information. The network will be added to your list of networks and will be available to connect to in the future when your computer is in range of the network..</p>
 
 </li>
 </ol>
 
 </li>
 </ul>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>Let Windows try to help you fix the problem. Try running the Network troubleshooter to see if it can diagnose and fix the problem.</p>
 <p>Select the <b>Start</b>  button, start typing <b>Network problems</b>, and then select <b>Identify and repair network problems</b> in the list.</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>The Network Troubleshooter (mentioned above) can help diagnose and fix common connection problems. After using that, try running the network commands below because the combination of doing these two things can help you get connected.</p>
 <p>If your problem isn’t fixed after running the Network troubleshooter, try to:</p>
 <ul>
 <li>
 <p>Reset the TCP/IP stack.</p>
 
 </li>
 <li>
 <p>Release the IP address.</p>
 
 </li>
 <li>
 <p>Renew the IP address.</p>
 
 </li>
 <li>
 <p>Flush and reset the DNS client resolver cache.</p>
 
 </li>
 </ul>
 <p>Here's how to run networking commands in a command prompt:</p>
 <ol>
 <li>
 <p>Select the <b>Start </b> button, start typing <b>cmd</b>, right-click <b>Command Prompt</b> in the list, select <b>Run as Administrator</b>, and then select <b>Yes</b>.</p>
 
 </li>
 <li>
 <p>At the command prompt, run the following commands in the listed order and then check to see if that fixes your connection problem:</p>
 <ul>
 <li>
 <p>Type <b>netsh winsock reset</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>netsh int ip reset</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /release</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /renew</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /flushdns</b> and press Enter.</p>
 
 </li>
 </ul>
 
 </li>
 </ol>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>This helps create a new connection to your Internet service provider (ISP). When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected.</p>
 <p>The steps you take to restart your modem and router can vary, but here are the general steps:</p>
 <ol>
 <li>
 <p>Unplug the power cable for the router from the power source.</p>
 
 </li>
 <li>
 <div><p>Unplug the power cable for the modem from the power source.</p><p>
	Some modems have a backup battery. So if you unplug the modem and lights stay on, remove the battery from the modem.</p></div>
 
 </li>
 <li>
 <div><p>Wait at least 30 seconds or so.</p><p>
	If you had to remove the battery from the modem, put it back in.</p></div>
 
 </li>
 <li>
 <p>Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.</p>
 
 </li>
 <li>
 <div><p>Plug your router back into the power source.</p><p>
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.</p></div>
 
 </li>
 <li>
 <p>On your PC, try to connect again.</p>
 
 </li>
 </ol>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>Make sure it’s not a problem with your cable modem or Internet service provider (ISP). If it is, contact your ISP.</p>
 <ol>
 <li>
 <p>Select the <b>Start </b> button, start typing <b>cmd</b>, right-click <b>Command Prompt</b> in the list, select <b>Run as Administrator</b>, and then select <b>Yes</b>.</p>
 
 </li>
 <li>
 <div><p>At the command prompt, type <b>ipconfig</b>.</p><p>
	Look for the IP address listed next to <b>Default gateway</b>. Write down that address if you need to. For example, 192.168.1.1.</p></div>
 
 </li>
 <li>
 <div><p>At the prompt, type <b>ping &lt;Default gateway&gt;</b> and press <b>Enter</b>. For example, type <b>ping 192.168.1.1</b> and press <b>Enter</b>.</p><p>
	The result should be something like this:</p><p>
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms</p></div>
 
 </li>
 </ol>
 <p>If the ping is successful and you see results similar to the results above, but you can’t connect to the Internet on your PC, there may be a problem with your modem or Internet service provider (ISP).</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>If you’re still having trouble connecting to a network, it might be related to your network adapter.</p>
 <ul>
 <li>
 <div><p>Try using the Network Adapter troubleshooter to automatically find and fix some problems. This troubleshooter will disable and re-enable the adapter, and try some other common repairs. </p><p>
	Select the <b>Start </b> button, start typing <b>Troubleshooting</b>, and then select <b>Troubleshooting</b> in the list. Select <b>View all </b>&gt; <b>Network Adapter</b>.</p></div>
 
 </li>
 <li>
 <p>Update the network adapter driver. An outdated or incompatible network adapter driver can cause connection problems. Check to see if an updated driver is available.</p>
 <ol>
 <li>
 <p>Select the <b>Start </b> button, start typing <b>Device Manager</b>, and then select it in the list.</p>
 
 </li>
 <li>
 <p>In Device Manager, select <b>Network adapters</b>, right-click your adapter, and then select <b>Properties</b>.</p>
 
 </li>
 <li>
 <p>Select the <b>Driver</b> tab, and then select <b>Update Driver</b>.</p>
 
 </li>
 <li>
 <p>Select <b>Search automatically for updated driver software</b>.</p>
 
 </li>
 </ol>
 
 </li>
 </ul>
 <p>If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the Internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>Here are some things to check and try with your router if you’re at home and having trouble getting connected.</p>
 <ul>
 <li>
 <p>If you don't see the network name, sign in to your router and check to see if it’s set to broadcast the network name.</p>
 <ol>
 <li>
 <p>Connect your PC to your router using an Ethernet cable.</p>
 
 </li>
 <li>
 <p>Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)</p>
 
 </li>
 <li>
 <p>Sign in with your user name and password, then make sure an option labeled <b>Enable SSID Broadcast</b>, <b>Wireless SSID broadcast</b>, or something similar is turned on. This setting is often on a Wireless Settings page.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>Check to see if your Wi-Fi network uses Media Access Control (MAC) address filtering for security. If it does, you’ll need to add the MAC address for your PC to the access list on your router before you can connect.</p>
 <ol>
 <li>
 <p>Select the <b>Start</b>  button. Start typing <b>cmd </b>and right-click <b>Command Prompt</b> in the list. Select <b>Run as Administrator</b>, and then select <b>Yes</b>.</p>
 
 </li>
 <li>
 <div><p>At the command prompt, type <b>ipconfig /all</b>.</p><p>
	Write down the address that appears next to <b>Physical Address</b> for your wireless network adapter. This is the address you’ll need to add to the access list on your router.</p></div>
 
 </li>
 </ol>
 <p>To add the MAC address to the access list on your router:</p>
 <ol>
 <li>
 <p>Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)</p>
 
 </li>
 <li>
 <p>Sign in with your user name and password, then look for a setting that says <b>MAC Address Filter</b> or something similar.</p>
 
 </li>
 <li>
 <p>Add the MAC address you wrote down for your PC to the access list and save your changes.</p>
 
 </li>
 </ol>
 <p>On your PC, try to connect to the Wi-Fi network again.</p>
 
 </li>
 </ul>
 </div>
 </div>
 
 </div>
 <div>
 
 
 <div>
 <h3></h3>
 <div>
 <ul>
 <li>
 <p>Make sure Wi-Fi is turned on.</p>
 <ol>
 <li>
 <p>On a laptop, open Windows Mobility Center by selecting the Start   button and then selecting <b>Control Panel </b>&gt; <b>Mobile PC </b>&gt; <b>Windows Mobility Center</b>.</p>
 
 </li>
 <li>
 <p>Look in the <b>Wireless Network </b>section. If Wi-Fi is on, the button should say <b>Turn wireless off</b>.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)</p>
 
 </li>
 <li>
 <p>Check and make sure your PC isn’t in airplane mode.</p>
 
 </li>
 <li>
 <p>Move closer to the router or access point if you can.</p>
 
 </li>
 <li>
 <p>If you don’t see the network name at all, the router or access point might not be set to broadcast the network name. In this case, you’ll need to connect to it manually.</p>
 <ol>
 <li>
 <p>Open Manage Wireless Networks by selecting the <b>Start</b>   button, and then selecting <b>Control Panel</b>. In the search box , type <b>wireless</b> and then select <b>Manage wireless networks</b>.</p>
 
 </li>
 <li>
 <p>Select <b>Add</b>, and then select <b>Manually create a network profile</b>.</p>
 
 </li>
 <li>
 <p>Type the network information.</p>
 
 </li>
 <li>
 <p>If you want Windows to automatically connect when the network is in range, select the <b>Start this connection automatically</b> check box.</p>
 
 </li>
 <li>
 <p>Select the <b>Connect even if the network is not broadcasting</b> check box, select <b>Next</b>, and then select <b>Close</b>.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>The network will be added to your list of networks and will be available to connect to when your computer is in range of the network. To connect to the network, follow these steps:</p>
 <ol>
 <li>
 <p>Open <b>Connect to a Network</b> by selecting the network icon in the notification area.</p>
 
 </li>
 <li>
 <p>Select <b>Unnamed Network</b>, select <b>Connect</b>, and then type the network information. The network will be added to your list of networks and will be available to connect to in the future when your computer is in range of the network..</p>
 
 </li>
 </ol>
 
 </li>
 </ul>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>Let Windows try to help you fix the problem. Try running the Network troubleshooter to see if it can diagnose and fix the problem.</p>
 <p>Open the Network troubleshooter by right-clicking the network icon in the notification area and then selecting <b>Troubleshoot problems</b>.</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>The Network Troubleshooter (mentioned above) can help diagnose and fix common connection problems. After using that, try running the network commands below because the combination of doing these two things can help you get connected.</p>
 <p>If your problem isn’t fixed after running the Network troubleshooter, try to:</p>
 <ul>
 <li>
 <p>Reset the TCP/IP stack.</p>
 
 </li>
 <li>
 <p>Release the IP address.</p>
 
 </li>
 <li>
 <p>Renew the IP address.</p>
 
 </li>
 <li>
 <p>Flush and reset the DNS client resolver cache.</p>
 
 </li>
 </ul>
 <p>Here's how to run networking commands in a command prompt:</p>
 <ol>
 <li>
 <p>Select the <b>Start</b> button<b> </b> . Type <b>cmd</b> in the search box, right-click <b>cmd</b> in the list, select <b>Run as administrator</b>, and then select <b>Yes</b>.</p>
 
 </li>
 <li>
 <p>At the command prompt, run the following commands in the listed order and then check to see if that fixes your connection problem:</p>
 <ul>
 <li>
 <p>Type <b>netsh winsock reset</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>netsh int ip reset</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /release</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /renew</b> and press Enter.</p>
 
 </li>
 <li>
 <p>Type <b>ipconfig /flushdns</b> and press Enter.</p>
 
 </li>
 </ul>
 
 </li>
 </ol>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>This helps create a new connection to your Internet service provider (ISP). When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected.</p>
 <p>The steps you take to restart your modem and router can vary, but here are the general steps:</p>
 <ol>
 <li>
 <p>Unplug the power cable for the router from the power source.</p>
 
 </li>
 <li>
 <div><p>Unplug the power cable for the modem from the power source.</p><p>
	Some modems have a backup battery. So if you unplug the modem and lights stay on, remove the battery from the modem.</p></div>
 
 </li>
 <li>
 <div><p>Wait at least 30 seconds or so.</p><p>
	If you had to remove the battery from the modem, put it back in.</p></div>
 
 </li>
 <li>
 <p>Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.</p>
 
 </li>
 <li>
 <div><p>Plug your router back into the power source.</p><p>
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.</p></div>
 
 </li>
 <li>
 <p>On your PC, try to connect again.</p>
 
 </li>
 </ol>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>Make sure it’s not a problem with your cable modem or Internet service provider (ISP). If it is, contact your ISP.</p>
 <ol>
 <li>
 <p>Select the <b>Start</b> button . Type <b>cmd</b> in the search box, right-click <b>cmd</b> in the list, select <b>Run as administrator</b>, and then select <b>Yes.</b></p>
 
 </li>
 <li>
 <div><p>At the command prompt, type <b>ipconfig</b>.</p><p>
	Look for the IP address listed next to <b>Default gateway</b>. Write down that address if you need to. For example, 192.168.1.1.</p></div>
 
 </li>
 <li>
 <div><p>At the prompt, type <b>ping &lt;Default gateway&gt;</b> and press <b>Enter</b>. For example, type <b>ping 192.168.1.1</b> and press <b>Enter</b>.</p><p>
	The result should be something like this:</p><p>
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64<br />
	Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms</p></div>
 
 </li>
 </ol>
 <p>If the ping is successful and you see results similar to the results above, but you can’t connect to the Internet on your PC, there may be a problem with your modem or Internet service provider (ISP).</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>If you’re still having trouble connecting to a network, it might be related to your network adapter.</p>
 <ul>
 <li>
 <div><p>Try using the Network Adapter troubleshooter to automatically find and fix some problems. This troubleshooter will disable and re-enable the adapter, and try some other common repairs.</p><p>
	Open the Network Adapter troubleshooter by selecting the <b>Start</b> button and then selecting <b>Control Panel</b>. In the search box, type <b>troubleshooter</b> and then select <b>Troubleshooting </b>&gt; <b>View all</b> &gt; <b>Network Adapter</b>.</p></div>
 
 </li>
 <li>
 <p>Update the network adapter driver. An outdated or incompatible network adapter driver can cause connection problems. Check to see if an updated driver is available.</p>
 <ol>
 <li>
 <p>Open Device Manager by selecting the <b>Start</b> button , selecting <b>Control Panel</b>, selecting <b>System and Security</b>, and then, under System, selecting <b>Device Manager</b>  . If you're prompted for an administrator password or confirmation, type the password or provide confirmation.</p>
 
 </li>
 <li>
 <p>In Device Manager, select <b>Network adapters</b>, right-click your adapter, and then select <b>Properties</b>.</p>
 
 </li>
 <li>
 <p>Select the <b>Driver</b> tab, and then select <b>Update Driver</b>.</p>
 
 </li>
 <li>
 <p>Select <b>Search automatically for updated driver software</b>.</p>
 
 </li>
 </ol>
 
 </li>
 </ul>
 <p>If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the Internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.</p>
 </div>
 </div>
 <div>
 <h3></h3>
 <div>
 <p>Here are some things to check and try with your router if you’re at home and having trouble getting connected.</p>
 <ul>
 <li>
 <p>If you don't see the network name, sign in to your router and check to see if it’s set to broadcast the network name.</p>
 <ol>
 <li>
 <p>Connect your PC to your router using an Ethernet cable.</p>
 
 </li>
 <li>
 <p>Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)</p>
 
 </li>
 <li>
 <p>Sign in with your user name and password, then make sure an option labeled <b>Enable SSID Broadcast</b>, <b>Wireless SSID broadcast</b>, or something similar is turned on. This setting is often on a Wireless Settings page.</p>
 
 </li>
 </ol>
 
 </li>
 <li>
 <p>Check to see if your Wi-Fi network uses Media Access Control (MAC) address filtering for security. If it does, you’ll need to add the MAC address for your PC to the access list on your router before you can connect.</p>
 <ol>
 <li>
 <p>Select the <b>Start </b>  button. Type <b>cmd</b> in the search box and right-click <b>cmd</b> in the list. Select <b>Run as administrator</b>, and then select <b>Yes</b>.</p>
 
 </li>
 <li>
 <div><p>At the command prompt, type <b>ipconfig /all</b>.</p><p>
	Write down the address that appears next to <b>Physical Address</b> for your wireless network adapter. This is the address you’ll need to add to the access list on your router.</p></div>
 
 </li>
 </ol>
 <p>To add the MAC address to the access list on your router:</p>
 <ol>
 <li>
 <p>Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)</p>
 
 </li>
 <li>
 <p>Sign in with your user name and password, then look for a setting that says <b>MAC Address Filter</b> or something similar.</p>
 
 </li>
 <li>
 <p>Add the MAC address you wrote down for your PC to the access list and save your changes.</p>
 
 </li>
 </ol>
 <p>On your PC, try to connect to the Wi-Fi network again.</p>
 
 </li>
 </ul>
 </div>
 </div>
 
 </div>
 </div>
 
 </section></article></div>||||I|||| Skip to main content
 Microsoft
 Support
 Support
 Support
 * Home
 * Microsoft 365
 * Office
 * Windows
 * More
 + Surface
 + Xbox
 + Deals
 * Buy Microsoft 365
 * All Microsoft

 + Global

 o Microsoft 365
 o Teams
 o Windows
 o Surface
 o Xbox
 o Deals
 o Small Business
 o Support
 + Software
 o Windows Apps
 o AI
 o Outlook
 o OneDrive
 o Microsoft Teams
 o OneNote
 o Microsoft Edge
 o Skype
 + PCs & Devices
 o Computers
 o Shop Xbox
 o Accessories
 o VR & mixed reality
 o Phones
 + Entertainment
 o Xbox Game Pass Ultimate
 o PC Game Pass
 o Xbox games
 o PC games
 o Windows digital games
 o Movies & TV
 + Business
 o Microsoft Cloud
 o Microsoft Security
 o Dynamics 365
 o Microsoft 365 for business
 o Microsoft Power Platform
 o Windows 365
 o Microsoft Industry
 o Small Business
 + Developer & IT
 o Azure
 o Developer Center
 o Documentation
 o Microsoft Learn
 o Microsoft Tech Community
 o Azure Marketplace
 o AppSource
 o Visual Studio
 + Other
 o Microsoft Rewards
 o Free downloads & security
 o Education
 o Virtual workshops and training
 o Gift cards
 o Students and parents deals
 o Licensing
 o Microsoft Experience Center
 + View Sitemap
 Search Search for help
 * 
 Cancel
 Sign in to your account
 Sign in with Microsoft
 Sign in or create an account.
 Hello,
 Select a different account.
 You have multiple accounts
 Choose the account you want to sign in with.
 * Windows support
 * Products
 + Microsoft 365
 + Outlook
 + Microsoft Teams
 + OneDrive
 + OneNote
 + Windows
 + Microsoft Edge
 + more ...
 * Devices
 + Surface
 + PC accessories
 + Mobile
 + Xbox
 + HoloLens
 + Hardware warranties
 * What's new
 * Get Windows 11
 * More support
 + Community forums
 + Microsoft 365 Admins
 + Small Business Portal
 + Developer
 + Education
 + Report a support scam

 Fix Wi-Fi connection issues in Windows

 Windows 11 Windows 10 Windows 8.1 More...Less
 This is your invitation to try Microsoft 365 for free

 Unlock now

 Troubleshooting network problems in Windows

 If you can’t get email, browse the web, or stream music, chances are you’re not connected to your network and can’t get onto the internet. To fix the problem, here are some things you can try.

 Windows 11Windows 10Windows 8.1 Windows 7
 

 Things to try first

 Try these things first to help you fix or narrow down the connection problem.

 * Make sure Wi‑Fi is turned on. Select the "No internet connection" icon on the right side of the taskbar, and make sure Wi-Fi is turned on. If it isn't, select it to turn it on. Also, make sure Airplane mode is turned off.

 * Select Manage Wi-Fi connections (>) on the Wi-Fi quick setting, see if a Wi-Fi network you recognize and trust appears in the list of networks. If it does, select the Wi-Fi network, and they try to connect to it. If it says Connected underneath the network name, select Disconnect, wait a moment, and then select Connect again.

 * Try connecting to a network on a different frequency band. Many consumer Wi-Fi routers broadcast at two different network frequency bands: 2.4 GHz and 5 GHz. These will appear as separate networks in the list of available Wi-Fi networks. If your list of available Wi-Fi networks includes both a 2.4 GHz network and a 5 GHz network, try connecting to the other network. To learn more about the differences between 2.4 GHz networks and 5 GHz networks, check out Wi-Fi problems and your home layout.

 * Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)

 * Run the Network troubleshooter. The Network troubleshooter can help diagnose and fix common connection problems.

 To run the Network troubleshooter

 1. Select Start > Settings > System > Troubleshoot > Other troubleshooters .

 2. Under Other, select Network Adapter > Run.

 3. Follow the steps in the troubleshooter and see if that fixes the problem.

 * Restart your modem and wireless router. This helps create a new connection to your internet service provider (ISP).

 When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected. The steps you take to restart your modem and router can vary, but here are the general steps.

 Note: If you have a cable modem/Wi-Fi router combo device, you only need to follow the steps for the single device.

 1. Unplug the power cable for the router from the power source.

 2. Unplug the power cable for the modem from the power source.

 Some modems have a backup battery. If you unplug the modem and lights stay on, remove the battery from the modem.

 3. Wait at least 30 seconds or so.

 If you had to remove the battery from the modem, put it back in.

 4. Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.

 5. Plug your router back into the power source.

 Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.

 6. On your PC, try to connect again.

 Narrow down the source of the problem

 Connection problems can be due to a variety of reasons—problems with the website, your device, the Wi-Fi router, modem, or your Internet Service Provider (ISP). Try the following steps to help narrow down the source of the problem.

 1. If the "Wi-Fi connected" icon appears on the right side of the taskbar, visit a different website. If the website opens, there might be a problem with the specific website. If you can't connect to another website, go to the next step.

 2. On another laptop or phone, try to connect to the same network. If you can connect, the source of the problem is likely due to your device—go to the section Network troubleshooting on your device. If you can't connect to the network on any device, continue to the next step.

 3. Check to see if there is a problem with the connection to your Wi-Fi router. Do this by using a ping test.

 1. Select Search on the taskbar, and type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator > Yes.

 2. At the command prompt, type ipconfig, and then select Enter. Look for the name of your Wi-Fi network within the results, and then find the IP address listed next to Default gateway for that Wi-Fi network. Write down that address if you need to. For example: 192.168.1.1

 3. At the prompt, type ping <DefaultGateway> and then select Enter. For example, type ping 192.168.1.1 and select Enter. The results should be something like this:

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms

 If you see results like this and are getting a reply, then you have a connection to your Wi-Fi router, so there might be a problem with your modem or ISP. Contact your ISP or check online on another device (if you can) to see if there's a service outage.

 If the results of the ping test indicate that you are not getting a reply from the router, try connecting your PC directly to your modem by using an Ethernet cable (if you can). If you can connect to the internet using an Ethernet cable, it confirms the connection problem is due to the Wi-Fi router. Make sure you've installed the latest firmware and see the documentation for your router.

 Network troubleshooting on your device

 Run network commands

 Try running these network commands to manually reset the TCP/IP stack, release and renew the IP address, and flush and reset the DNS client resolver cache:

 1. Select Search on the taskbar, and type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator > Yes.

 2. At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:

 + Type netsh winsock reset and select Enter.

 + Type netsh int ip reset and select Enter.

 + Type ipconfig /release and select Enter.

 + Type ipconfig /renew and select Enter.

 + Type ipconfig /flushdns and select Enter.

 Uninstall the network adapter driver and restart

 If the previous steps didn’t work, try to uninstall the network adapter driver, and then restart your computer. Windows will automatically install the latest driver. Consider this approach if your network connection stopped working properly after a recent update.

 Before uninstalling, make sure you have drivers available as a backup. Visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.

 1. Select Search on the taskbar, type device manager, and then select Device Manager from the list of results.

 2. Expand Network adapters, and locate the network adapter for your device.

 3. Select the network adapter, press and hold (or right-click), and then select Uninstall device > check the Attempt to remove the driver for this device check box > Uninstall.

 4. After uninstalling the driver, select Start > Power > Restart .

 After your PC restarts, Windows will automatically look for and install the network adapter driver. Check to see if that fixes your connection problem. If Windows doesn't automatically install a driver, try to install the backup driver you saved before uninstalling.

 Check if your network adapter is compatible with the latest Windows Update

 If you lost your network connection immediately after upgrading to or updating Windows 11, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update:

 1. Select Start > Settings > Windows Update > Update history > Uninstall updates .

 2. Select the most recent update, then select Uninstall.

 If uninstalling the most recent update restores your network connection, check to see if an updated driver is available:

 1. Select Search on the taskbar, type device manager, and then select Device Manager from the list of results.

 2. Expand Network adapters, and locate the network adapter for your device.

 3. Select the network adapter, press and hold (or right-click), then select Update driver > Search automatically for updated driver software, and then follow the instructions.

 4. After installing the updated driver, select Start > Power > Restart if you're asked to restart, and see if that fixes the connection issue.

 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. You’ll need to know the PC manufacturer and model name or number.

 Do one of the following:

 * If you couldn’t download and install a newer network adapter driver, hide the update that’s causing you to lose your network connection. To learn how to hide updates, see Hide Windows Updates or driver updates.

 * If you could successfully install updated drivers for your network adapter, then reinstall the latest updates. To do this, select Start > Settings > Windows Update > Check for updates.

 Use network reset

 Using network reset should be the last step you try. Consider using it if the steps above don’t help to get you connected.

 This can help solve connection problems you might have after upgrading from Windows 10 to Windows 11. It can also help to fix the problem where you can connect to the internet, but can't connect to shared network drives. Network reset removes any network adapters you have installed and the settings for them. After your PC restarts, any network adapters are reinstalled, and the settings for them are set to the defaults.

 1. Select Start > Settings > Network & internet > Advanced network settings > Network reset.
 Open Network & Internet Status settings

 2. On the Network reset screen, select Reset now > Yes to confirm.

 Wait for your PC to restart, and see if that fixes the problem.

 Notes:

 * After using network reset, you might need to reinstall and set up other networking software you might be using, such as VPN client software or virtual switches from Hyper‑V (if you're using that or other network virtualization software).

 * Network reset might set each one of your known network connections to a public network profile. In a public network profile, your PC is not discoverable to other PCs and devices on the network, which can help make your PC more secure. However, if your PC is used for file or printer sharing, you’ll need to make your PC discoverable again by setting it to use a private network profile. To do this, select Start > Settings > Network & internet > Wi-Fi . On the Wi-Fi screen, select Manage known networks > the network connection you want to change. Under Network profile type, select Private.

 Additional troubleshooting steps

 Check your Wi-Fi settings

 Wi-Fi adapter manufacturers might have different advanced settings you can change based on your network environment or connection preferences.

 Check the Wireless Mode setting for your network adapter and make sure it matches the capabilities of the network you’re trying to connect to. If it doesn’t match, you won’t be able to connect, and the network might not appear in the list of available networks. The Wireless Mode will often be set to Auto or something similar by default, which enables connection for every kind of network that’s supported.

 To find the wireless mode setting

 1. In Device Manager, select Network adapters, and then double-click the network adapter name.

 2. Select the Advanced tab and look for a Wireless Mode setting. Make sure it’s set to the mode your network is using.

 Wi-Fi profile settings

 Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.

 To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.

 To forget a network

 1. Select Start > Settings > Network & internet .

 2. Select Wi-Fi , then select Manage known networks.

 3. Select the network you want to forget, then select Forget.

 Afterwards, select the Wi-Fi icon on the taskbar and try to reconnect to the network to renew the network connection.

 Check your home layout

 Your Wi-Fi network might be affected by the network's frequency band, channel congestion, and/or signal strength. For more info, see Wi-Fi problems and your home layout.

 Check for additional symptoms for the "No internet connection" icon.

 There may be additional troubleshooting steps you can try, depending on which symptoms you're having. To view these steps, check out Wi-Fi connection icons and what they mean.

 Related topics

 * Setting up a wireless network

 * How to find your wireless network password

 * Analyze the wireless network report

 * Wi-Fi tools and apps

 * Make a Wi-Fi network public or private in Windows

 Things to try first

 Try these things first to help you fix or narrow down the connection problem.

 * Make sure Wi‑Fi is turned on. Select the "No internet connection" icon on the right side of the taskbar, and make sure Wi-Fi is turned on. If it isn't, select it to turn it on. Also, make sure Airplane mode is turned off.

 * Afterwards, see if a Wi-Fi network you recognize and trust appears in the list of networks. If it does, select the Wi-Fi network, and they try to connect to it. If it says Connected underneath the network name, select Disconnect, wait a moment, and then select Connect again.

 * Try connecting to a network on a different frequency band. Many consumer Wi-Fi routers broadcast at two different network frequency bands: 2.4 GHz and 5 GHz. These will appear as separate networks in the list of available Wi-Fi networks. If your list of available Wi-Fi networks includes both a 2.4 GHz network and a 5 GHz network, try connecting to the other network. To learn more about the differences between 2.4 GHz networks and 5 GHz networks, check out Wi-Fi problems and your home layout.

 * Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)

 * Run the Network troubleshooter. The Network troubleshooter can help diagnose and fix common connection problems.

 To run the Network troubleshooter

 1. Select the Start button > Settings > Network & Internet > Status.
 Open Network & Internet Status settings

 2. Under Change your network settings, select Network troubleshooter.

 3. Follow the steps in the troubleshooter, and see if that fixes the problem.

 * Restart your modem and wireless router. This helps create a new connection to your internet service provider (ISP).


 When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected. The steps you take to restart your modem and router can vary, but here are the general steps. (Note: If you have a cable modem/Wi-Fi router combo device, you only need to follow the steps for the single device.)

 1. Unplug the power cable for the router from the power source.

 2. Unplug the power cable for the modem from the power source.

 Some modems have a backup battery. If you unplug the modem and lights stay on, remove the battery from the modem.

 3. Wait at least 30 seconds or so.

 If you had to remove the battery from the modem, put it back in.

 4. Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.

 5. Plug your router back into the power source.

 Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.

 6. On your PC, try to connect again.

 Narrow down the source of the problem

 Connection problems can be due to a variety of reasons—problems with the website, your device, the Wi-Fi router, modem, or your Internet Service Provider (ISP). Try the following steps to help narrow down the source of the problem.

 1. If the "Wi-Fi connected" icon appears on the right side of the taskbar, visit a different website. If the website opens, there might be a problem with the specific website. If you can't connect to another website, go to the next step.

 2. On another laptop or phone, try to connect to the same network. If you can connect, the source of the problem is likely due to your device—go to the section Network troubleshooting on your device. If you can't connect to the network on any device, continue to the next step.

 3. Check to see if there is a problem with the connection to your Wi-Fi router. Do this by using a ping test.

 1. In the search box on the taskbar, type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator > Yes.

 2. At the command prompt, type ipconfig, and then select Enter. Look for the name of your Wi-Fi network within the results, and then find the IP address listed next to Default gateway for that Wi-Fi network. Write down that address if you need to. For example: 192.168.1.1

 3. At the prompt, type ping <DefaultGateway> and then select Enter. For example, type ping 192.168.1.1 and select Enter. The results should be something like this:

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Reply from 192.168.1.1: bytes=32 time=5ms TTL=64

 * Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms

 If you see results like this and are getting a reply, then you have a connection to your Wi-Fi router, so there might be a problem with your modem or ISP. Contact your ISP or check online on another device (if you can) to see if there's a service outage.

 If the results of the ping test indicate that you are not getting a reply from the router, try connecting your PC directly to your modem by using an Ethernet cable (if you can). If you can connect to the internet using an Ethernet cable, it confirms the connection problem is due to the Wi-Fi router. Make sure you've installed the latest firmware and see the documentation for your router.

 Network troubleshooting on your device

 Run network commands

 Try running these network commands to manually reset the TCP/IP stack, release and renew the IP address, and flush and reset the DNS client resolver cache:

 1. In the search box on the taskbar, type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator > Yes.

 2. At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:

 + Type netsh winsock reset and selectEnter.

 + Type netsh int ip reset and select Enter.

 + Type ipconfig /release and select Enter.

 + Type ipconfig /renew and select Enter.

 + Type ipconfig /flushdns and select Enter.

 Uninstall the network adapter driver and restart

 If the previous steps didn’t work, try to uninstall the network adapter driver, and then restart your computer. Windows will automatically install the latest driver. Consider this approach if your network connection stopped working properly after a recent update.

 Before uninstalling, make sure you have drivers available as a backup. Visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.

 1. In the search box on the taskbar, type device manager, and then select Device Manager from the list of results.

 2. Expand Network adapters, and locate the network adapter for your device.

 3. Select the network adapter, press and hold (or right-click), and then select Uninstall device > check the Attempt to remove the driver software for this device check box > Uninstall.

 4. After uninstalling the driver, select the Start button > Power > Restart.

 After your PC restarts, Windows will automatically look for and install the network adapter driver. Check to see if that fixes your connection problem. If Windows doesn't automatically install a driver, try to install the backup driver you saved before uninstalling.

 Check if your network adapter is compatible with the latest Windows Update

 If you lost your network connection immediately after upgrading or updating Windows 10, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update:

 1. Select the Start button, then select Settings > Update & Security >Windows Update > View update history >Uninstall updates.

 2. Select the most recent update, then select Uninstall.

 If uninstalling the most recent update restores your network connection, check to see if an updated driver is available:

 1. In the search box on the taskbar, type device manager, and then select Device Manager from the list of results.

 2. Expand Network adapters, and locate the network adapter for your device.

 3. Select the network adapter, select Update driver >Search automatically for updated driver software, and then follow the instructions.

 4. After installing the updated driver, select the Start button > Power > Restart if you're asked to restart, and see if that fixes the connection issue.

 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. You’ll need to know the PC manufacturer and model name or number.

 Do one of the following:

 * If you couldn’t download and install a newer network adapter driver, hide the update that’s causing you to lose your network connection. To learn how to hide updates, see Hide Windows Updates or driver updates.

 * If you could successfully install updated drivers for your network adapter, then reinstall the latest updates. To do this, select the Start button, then select Settings > Update & Security > Windows Update > Check for updates.

 Use network reset

 Using network reset should be the last step you try. Consider using it if the steps above don’t help to get you connected.

 This can help solve connection problems you might have after upgrading from a previous version of Windows to Windows 10. It can also help to fix the problem where you can connect to the internet, but can't connect to shared network drives. Network reset removes any network adapters you have installed and the settings for them. After your PC restarts, any network adapters are reinstalled, and the settings for them are set to the defaults.

 Note: To use network reset, your PC must be running Windows 10 Version 1607 or later. To see which version of Windows 10 your device is currently running, select the Start button, then select Settings > System > About.

 1. Select the Start button, then select Settings > Network & Internet > Status > Network reset.
 Open Network & Internet Status settings

 2. On the Network reset screen, select Reset now > Yes to confirm.

 Wait for your PC to restart, and see if that fixes the problem.

 Notes:

 * After using network reset, you might need to reinstall and set up other networking software you might be using, such as VPN client software or virtual switches from Hyper‑V (if you're using that or other network virtualization software).

 * Network reset might set each one of your known network connections to a public network profile. In a public network profile, your PC is not discoverable to other PCs and devices on the network, which can help make your PC more secure. However, if your PC is used for file or printer sharing, you’ll need to make your PC discoverable again by setting it to use a private network profile. To do this, select the Start button, then select Settings > Network & Internet > Wi-Fi . On the Wi-Fi screen, select Manage known networks > the network connection you want to change > Properties. Under Network profile, select Private.

 Additional troubleshooting steps

 Check your Wi-Fi settings

 Wi-Fi adapter manufacturers might have different advanced settings you can change based on your network environment or connection preferences.

 Check the Wireless Mode setting for your network adapter and make sure it matches the capabilities of the network you’re trying to connect to. If it doesn’t match, you won’t be able to connect, and the network might not appear in the list of available networks. The Wireless Mode will often be set to Auto or something similar by default, which enables connection for every kind of network that’s supported.

 To find the wireless mode setting

 1. In Device Manager, select Network adapters, and then double-click the network adapter name.

 2. Select the Advanced tab and look for a Wireless Mode setting. Make sure it’s set to the mode your network is using.

 Wi-Fi profile settings

 Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.

 To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.

 To forget a network

 1. Select the Wi-Fi network icon on the right side of the taskbar, then select Network & Internet settings.

 2. Select Wi-Fi , then select Manage known networks.

 3. Select the network you want to forget, then select Forget.

 Afterwards, select the Wi-Fi icon on the taskbar and try to reconnect to the desired network to renew the network connection.

 Check your home layout

 Your Wi-Fi network might be affected by the network's frequency band, channel congestion, and/or signal strength. For more info, see Wi-Fi problems and your home layout.

 Check for additional symptoms for the "No internet connection" icon

 There may be additional troubleshooting steps you can try, depending on which symptoms you're having. To view these steps, check out Wi-Fi connection icons and what they mean.

 Related topics

 * Setting up a wireless network

 * How to find your wireless network password

 * Analyze the wireless network report

 * Wi-Fi tools and apps

 * Make a Wi-Fi network public or private in Windows 10

 Check the basics on your PC

 * Make sure Wi-Fi is turned on.

 1. Swipe in from the right edge of the screen, select Settings, then select the Network icon.

 2. Turn on Wi-Fi.

 * Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)

 * Make sure your PC isn’t in airplane mode.

 1. Swipe in from the right edge of the screen, select Settings, then select the Network icon.

 2. Turn off Airplane mode.

 * Move closer to the router or access point if you can.

 * If you don’t see the network name at all, the router or access point might not be set to broadcast the network name. In this case, you’ll need to connect to it manually.

 1. Swipe in from the right edge of the screen, and then select Settings.

 2. Select the Network icon, and then select Hidden network.

 3. Type the network name and select Next.

 4. Type the password and select Next.

 5. Follow any additional instructions to get connected.

 * The network will be added to your list of networks and will be available to connect to when your computer is in range of the network. To connect to the network, follow these steps:

 1. Open Connect to a Network by selecting the network icon in the notification area.

 2. Select Unnamed Network, select Connect, and then type the network information. The network will be added to your list of networks and will be available to connect to in the future when your computer is in range of the network..

 Use the Network Troubleshooter

 Let Windows try to help you fix the problem. Try running the Network troubleshooter to see if it can diagnose and fix the problem.

 Select the Start button, start typing Network problems, and then select Identify and repair network problems in the list.

 Run network commands after using the Network Troubleshooter

 The Network Troubleshooter (mentioned above) can help diagnose and fix common connection problems. After using that, try running the network commands below because the combination of doing these two things can help you get connected.

 If your problem isn’t fixed after running the Network troubleshooter, try to:

 * Reset the TCP/IP stack.

 * Release the IP address.

 * Renew the IP address.

 * Flush and reset the DNS client resolver cache.

 Here's how to run networking commands in a command prompt:

 1. Select the Start button, start typing cmd, right-click Command Prompt in the list, select Run as Administrator, and then select Yes.

 2. At the command prompt, run the following commands in the listed order and then check to see if that fixes your connection problem:

 + Type netsh winsock reset and press Enter.

 + Type netsh int ip reset and press Enter.

 + Type ipconfig /release and press Enter.

 + Type ipconfig /renew and press Enter.

 + Type ipconfig /flushdns and press Enter.

 Restart your modem and router

 This helps create a new connection to your Internet service provider (ISP). When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected.

 The steps you take to restart your modem and router can vary, but here are the general steps:

 1. Unplug the power cable for the router from the power source.

 2. Unplug the power cable for the modem from the power source.

 Some modems have a backup battery. So if you unplug the modem and lights stay on, remove the battery from the modem.

 3. Wait at least 30 seconds or so.

 If you had to remove the battery from the modem, put it back in.

 4. Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.

 5. Plug your router back into the power source.

 Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.

 6. On your PC, try to connect again.

 See if it's a problem with your modem or your ISP

 Make sure it’s not a problem with your cable modem or Internet service provider (ISP). If it is, contact your ISP.

 1. Select the Start button, start typing cmd, right-click Command Prompt in the list, select Run as Administrator, and then select Yes.

 2. At the command prompt, type ipconfig.

 Look for the IP address listed next to Default gateway. Write down that address if you need to. For example, 192.168.1.1.

 3. At the prompt, type ping <Default gateway> and press Enter. For example, type ping 192.168.1.1 and press Enter.

 The result should be something like this:

 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms

 If the ping is successful and you see results similar to the results above, but you can’t connect to the Internet on your PC, there may be a problem with your modem or Internet service provider (ISP).

 Check your network adapter

 If you’re still having trouble connecting to a network, it might be related to your network adapter.

 * Try using the Network Adapter troubleshooter to automatically find and fix some problems. This troubleshooter will disable and re-enable the adapter, and try some other common repairs.

 Select the Start button, start typing Troubleshooting, and then select Troubleshooting in the list. Select View all > Network Adapter.

 * Update the network adapter driver. An outdated or incompatible network adapter driver can cause connection problems. Check to see if an updated driver is available.

 1. Select the Start button, start typing Device Manager, and then select it in the list.

 2. In Device Manager, select Network adapters, right-click your adapter, and then select Properties.

 3. Select the Driver tab, and then select Update Driver.

 4. Select Search automatically for updated driver software.

 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the Internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.

 Other steps to try on your router

 Here are some things to check and try with your router if you’re at home and having trouble getting connected.

 * If you don't see the network name, sign in to your router and check to see if it’s set to broadcast the network name.

 1. Connect your PC to your router using an Ethernet cable.

 2. Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)

 3. Sign in with your user name and password, then make sure an option labeled Enable SSID Broadcast, Wireless SSID broadcast, or something similar is turned on. This setting is often on a Wireless Settings page.

 * Check to see if your Wi-Fi network uses Media Access Control (MAC) address filtering for security. If it does, you’ll need to add the MAC address for your PC to the access list on your router before you can connect.

 1. Select the Start button. Start typing cmd and right-click Command Prompt in the list. Select Run as Administrator, and then select Yes.

 2. At the command prompt, type ipconfig /all.

 Write down the address that appears next to Physical Address for your wireless network adapter. This is the address you’ll need to add to the access list on your router.

 To add the MAC address to the access list on your router:

 1. Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)

 2. Sign in with your user name and password, then look for a setting that says MAC Address Filter or something similar.

 3. Add the MAC address you wrote down for your PC to the access list and save your changes.

 On your PC, try to connect to the Wi-Fi network again.

 Check the basics on your PC

 * Make sure Wi-Fi is turned on.

 1. On a laptop, open Windows Mobility Center by selecting the Start button and then selecting Control Panel > Mobile PC > Windows Mobility Center.

 2. Look in the Wireless Network section. If Wi-Fi is on, the button should say Turn wireless off.

 * Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)

 * Check and make sure your PC isn’t in airplane mode.

 * Move closer to the router or access point if you can.

 * If you don’t see the network name at all, the router or access point might not be set to broadcast the network name. In this case, you’ll need to connect to it manually.

 1. Open Manage Wireless Networks by selecting the Start button, and then selecting Control Panel. In the search box , type wireless and then select Manage wireless networks.

 2. Select Add, and then select Manually create a network profile.

 3. Type the network information.

 4. If you want Windows to automatically connect when the network is in range, select the Start this connection automatically check box.

 5. Select the Connect even if the network is not broadcasting check box, select Next, and then select Close.

 * The network will be added to your list of networks and will be available to connect to when your computer is in range of the network. To connect to the network, follow these steps:

 1. Open Connect to a Network by selecting the network icon in the notification area.

 2. Select Unnamed Network, select Connect, and then type the network information. The network will be added to your list of networks and will be available to connect to in the future when your computer is in range of the network..

 Use the Network Troubleshooter

 Let Windows try to help you fix the problem. Try running the Network troubleshooter to see if it can diagnose and fix the problem.

 Open the Network troubleshooter by right-clicking the network icon in the notification area and then selecting Troubleshoot problems.

 Run network commands after using the Network Troubleshooter

 The Network Troubleshooter (mentioned above) can help diagnose and fix common connection problems. After using that, try running the network commands below because the combination of doing these two things can help you get connected.

 If your problem isn’t fixed after running the Network troubleshooter, try to:

 * Reset the TCP/IP stack.

 * Release the IP address.

 * Renew the IP address.

 * Flush and reset the DNS client resolver cache.

 Here's how to run networking commands in a command prompt:

 1. Select the Start button . Type cmd in the search box, right-click cmd in the list, select Run as administrator, and then select Yes.

 2. At the command prompt, run the following commands in the listed order and then check to see if that fixes your connection problem:

 + Type netsh winsock reset and press Enter.

 + Type netsh int ip reset and press Enter.

 + Type ipconfig /release and press Enter.

 + Type ipconfig /renew and press Enter.

 + Type ipconfig /flushdns and press Enter.

 Restart your modem and router

 This helps create a new connection to your Internet service provider (ISP). When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected.

 The steps you take to restart your modem and router can vary, but here are the general steps:

 1. Unplug the power cable for the router from the power source.

 2. Unplug the power cable for the modem from the power source.

 Some modems have a backup battery. So if you unplug the modem and lights stay on, remove the battery from the modem.

 3. Wait at least 30 seconds or so.

 If you had to remove the battery from the modem, put it back in.

 4. Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.

 5. Plug your router back into the power source.

 Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices.

 6. On your PC, try to connect again.

 See if it's a problem with your modem or your ISP

 Make sure it’s not a problem with your cable modem or Internet service provider (ISP). If it is, contact your ISP.

 1. Select the Start button . Type cmd in the search box, right-click cmd in the list, select Run as administrator, and then select Yes.

 2. At the command prompt, type ipconfig.

 Look for the IP address listed next to Default gateway. Write down that address if you need to. For example, 192.168.1.1.

 3. At the prompt, type ping <Default gateway> and press Enter. For example, type ping 192.168.1.1 and press Enter.

 The result should be something like this:

 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms

 If the ping is successful and you see results similar to the results above, but you can’t connect to the Internet on your PC, there may be a problem with your modem or Internet service provider (ISP).

 Check your network adapter

 If you’re still having trouble connecting to a network, it might be related to your network adapter.

 * Try using the Network Adapter troubleshooter to automatically find and fix some problems. This troubleshooter will disable and re-enable the adapter, and try some other common repairs.

 Open the Network Adapter troubleshooter by selecting the Start button and then selecting Control Panel. In the search box, type troubleshooter and then select Troubleshooting > View all > Network Adapter.

 * Update the network adapter driver. An outdated or incompatible network adapter driver can cause connection problems. Check to see if an updated driver is available.

 1. Open Device Manager by selecting the Start button , selecting Control Panel, selecting System and Security, and then, under System, selecting Device Manager . If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

 2. In Device Manager, select Network adapters, right-click your adapter, and then select Properties.

 3. Select the Driver tab, and then select Update Driver.

 4. Select Search automatically for updated driver software.

 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the Internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.

 Other steps to try on your router

 Here are some things to check and try with your router if you’re at home and having trouble getting connected.

 * If you don't see the network name, sign in to your router and check to see if it’s set to broadcast the network name.

 1. Connect your PC to your router using an Ethernet cable.

 2. Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)

 3. Sign in with your user name and password, then make sure an option labeled Enable SSID Broadcast, Wireless SSID broadcast, or something similar is turned on. This setting is often on a Wireless Settings page.

 * Check to see if your Wi-Fi network uses Media Access Control (MAC) address filtering for security. If it does, you’ll need to add the MAC address for your PC to the access list on your router before you can connect.

 1. Select the Start button. Type cmd in the search box and right-click cmd in the list. Select Run as administrator, and then select Yes.

 2. At the command prompt, type ipconfig /all.

 Write down the address that appears next to Physical Address for your wireless network adapter. This is the address you’ll need to add to the access list on your router.

 To add the MAC address to the access list on your router:

 1. Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)

 2. Sign in with your user name and password, then look for a setting that says MAC Address Filter or something similar.

 3. Add the MAC address you wrote down for your PC to the access list and save your changes.

 On your PC, try to connect to the Wi-Fi network again.

 SUBSCRIBE RSS FEEDS

 Need more help?

 Join the discussion

 ASK THE COMMUNITY >

 Get support

 CONTACT US >

 This is your invitation to try Microsoft 365 for free

 Unlock now

 Was this information helpful?

 Yes No
 Thank you! Any more feedback? (The more you tell us the more we can help.) Can you help us improve? (The more you tell us the more we can help.)
 What affected your experience?
 Resolved my issue
 Clear instructions
 Easy to follow
 No jargon
 Pictures helped
 Other
 Didn't match my screen
 Incorrect instructions
 Too technical
 Not enough information
 Not enough pictures
 Other
 Any additional feedback? (Optional)
 Submit feedback

 Thank you for your feedback!

 ×
 What's new
 * Surface Pro 9
 * Surface Laptop 5
 * Surface Studio 2+
 * Surface Laptop Go 2
 * Surface Laptop Studio
 * Surface Go 3
 * Microsoft 365
 * Windows 11 apps
 Microsoft Store
 * Account profile
 * Download Center
 * Microsoft Store support
 * Returns
 * Order tracking
 * Virtual workshops and training
 * Microsoft Store Promise
 * Flexible Payments
 Education
 * Microsoft in education
 * Devices for education
 * Microsoft Teams for Education
 * Microsoft 365 Education
 * How to buy for your school
 * Educator training and development
 * Deals for students and parents
 * Azure for students
 Business
 * Microsoft Cloud
 * Microsoft Security
 * Dynamics 365
 * Microsoft 365
 * Microsoft Power Platform
 * Microsoft Teams
 * Microsoft Industry
 * Small Business
 Developer & IT
 * Azure
 * Developer Center
 * Documentation
 * Microsoft Learn
 * Microsoft Tech Community
 * Azure Marketplace
 * AppSource
 * Visual Studio
 Company
 * Careers
 * About Microsoft
 * Company news
 * Privacy at Microsoft
 * Investors
 * Diversity and inclusion
 * Accessibility
 * Sustainability
 English (United States) Your California Privacy Choices Your California Privacy Choices
 * Sitemap
 * Contact Microsoft
 * Privacy
 * Manage cookies
 * Terms of use
 * Trademarks
 * Safety & eco
 * Recycling
 * About our ads
 * © Microsoft 2023
Troubleshooting network problems in Windows
 
 If you can’t get email, browse the web, or stream music, chances are you’re not connected to your network and can’t get onto the internet. To fix the problem, here are some things you can try.
 
 
 
 
 
 
 Things to try first
 
 Try these things first to help you fix or narrow down the connection problem.
 
 
 Make sure Wi‑Fi is turned on. Select the "No internet connection" icon on the right side of the taskbar, and make sure Wi-Fi is turned on. If it isn't, select it to turn it on. Also, make sure Airplane mode is turned off.
 
 
 
 Select Manage Wi-Fi connections (&gt;) on the Wi-Fi quick setting, see if a Wi-Fi network you recognize and trust appears in the list of networks. If it does, select the Wi-Fi network, and they try to connect to it. If it says Connected underneath the network name, select Disconnect, wait a moment, and then select Connect again.
 
 
 
 Try connecting to a network on a different frequency band. Many consumer Wi-Fi routers broadcast at two different network frequency bands: 2.4 GHz and 5 GHz. These will appear as separate networks in the list of available Wi-Fi networks. If your list of available Wi-Fi networks includes both a 2.4 GHz network and a 5 GHz network, try connecting to the other network. To learn more about the differences between 2.4 GHz networks and 5 GHz networks, check out Wi-Fi problems and your home layout.
 
 
 
 Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)
 
 
 
 Run the Network troubleshooter. The Network troubleshooter can help diagnose and fix common connection problems.
 
 
 
 
 To run the Network troubleshooter
 
 
 
 Select Start  &gt; Settings  &gt; System  &gt; Troubleshoot  &gt; Other troubleshooters .
 
 
 
 Under Other, select Network Adapter &gt; Run.
 
 
 
 Follow the steps in the troubleshooter and see if that fixes the problem.
 
 
 
 
 
  Restart your modem and wireless router. This helps create a new connection to your internet service provider (ISP). 
	When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected. The steps you take to restart your modem and router can vary, but here are the general steps. 
 
 
 
  Note: If you have a cable modem/Wi-Fi router combo device, you only need to follow the steps for the single device.
 
 
 Unplug the power cable for the router from the power source.
 
 
 
  Unplug the power cable for the modem from the power source.   
	Some modems have a backup battery. If you unplug the modem and lights stay on, remove the battery from the modem. 
 
 
 
  Wait at least 30 seconds or so. 
	If you had to remove the battery from the modem, put it back in. 
 
 
 
 Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.
 
 
 
  Plug your router back into the power source. 
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices. 
 
 
 
 On your PC, try to connect again.
 
 
 
 
 
 
  
 
 Connection problems can be due to a variety of reasons—problems with the website, your device, the Wi-Fi router, modem, or your Internet Service Provider (ISP). Try the following steps to help narrow down the source of the problem.
 
 
 If the "Wi-Fi connected" icon  appears on the right side of the taskbar, visit a different website. If the website opens, there might be a problem with the specific website. If you can't connect to another website, go to the next step.
 
 
 
 On another laptop or phone, try to connect to the same network. If you can connect, the source of the problem is likely due to your device—go to the section Network troubleshooting on your device. If you can't connect to the network on any device, continue to the next step.
 
 
 
 Check to see if there is a problem with the connection to your Wi-Fi router. Do this by using a ping test.
 
 
 Select Search  on the taskbar, and type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator &gt; Yes.
 
 
 
 At the command prompt, type ipconfig, and then select Enter. Look for the name of your Wi-Fi network within the results, and then find the IP address listed next to Default gateway for that Wi-Fi network.  Write down that address if you need to. For example:  192.168.1.1 
 
 
 
 At the prompt, type ping &lt;DefaultGateway&gt; and then select Enter.  For example, type ping 192.168.1.1 and select Enter.  The results should be something like this:
 
 
 
 
 
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 
 Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:  Minimum = 4ms, Maximum = 5ms, Average = 4ms
 
 
 
 
 If you see results like this and are getting a reply, then you have a connection to your Wi-Fi router, so there might be a problem with your modem or ISP. Contact your ISP or check online on another device (if you can) to see if there's a service outage.
 If the results of the ping test indicate that you are not getting a reply from the router, try connecting your PC directly to your modem by using an Ethernet cable (if you can). If you can connect to the internet using an Ethernet cable, it confirms the connection problem is due to the Wi-Fi router. Make sure you've installed the latest firmware and see the documentation for your router.
 
 
 
  
 
 
 Run network commands
 
 Try running these network commands to manually reset the TCP/IP stack, release and renew the IP address, and flush and reset the DNS client resolver cache:
 
 
 Select Search  on the taskbar, and type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator &gt; Yes.
 
 
 
 At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:
 
 
 Type netsh winsock reset and select  Enter . 
 
 
 
 Type netsh int ip reset and select Enter.
 
 
 
 Type ipconfig /release and select Enter.
 
 
 
 Type ipconfig /renew and select Enter.
 
 
 
 Type ipconfig /flushdns and select Enter.
 
 
 
 
 
 
 
 Uninstall the network adapter driver and restart
 
 If the previous steps didn’t work, try to uninstall the network adapter driver, and then restart your computer. Windows will automatically install the latest driver. Consider this approach if your network connection stopped working properly after a recent update.
 Before uninstalling, make sure you have drivers available as a backup. Visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.
 
 
 Select Search  on the taskbar, type device manager, and then select Device Manager from the list of results.
 
 
 
 Expand Network adapters, and locate the network adapter for your device.
 
 
 
 Select the network adapter, press and hold (or right-click), and then select Uninstall device &gt; check the Attempt to remove the driver for this device check box &gt; Uninstall.
 
 
 
 After uninstalling the driver, select Start  &gt; Power  &gt; Restart .
 
 
 
 After your PC restarts, Windows will automatically look for and install the network adapter driver. Check to see if that fixes your connection problem. If Windows doesn't automatically install a driver, try to install the backup driver you saved before uninstalling.
 
 Check if your network adapter is compatible with the latest Windows Update
 
 If you lost your network connection immediately after upgrading to or updating Windows 11, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update:
 
 
 Select Start  &gt; Settings  &gt;  Windows Update  &gt; Update history  &gt; Uninstall updates .
 
 
 
 Select the most recent update, then select Uninstall.
 
 
 
 If uninstalling the most recent update restores your network connection, check to see if an updated driver is available:
 
 
 Select Search  on the taskbar, type device manager, and then select Device Manager from the list of results.
 
 
 
 Expand Network adapters, and locate the network adapter for your device.
 
 
 
 Select the network adapter, press and hold (or right-click), then select Update driver &gt; Search automatically for updated driver software, and then follow the instructions.
 
 
 
 After installing the updated driver, select Start  &gt; Power  &gt; Restart  if you're asked to restart, and see if that fixes the connection issue.
 
 
 
 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. You’ll need to know the PC manufacturer and model name or number.
 Do one of the following:
 
 
 If you couldn’t download and install a newer network adapter driver, hide the update that’s causing you to lose your network connection. To learn how to hide updates, see Hide Windows Updates or driver updates.
 
 
 
 If you could successfully install updated drivers for your network adapter, then reinstall the latest updates. To do this, select Start  &gt; Settings  &gt; Windows Update  &gt; Check for updates.
 
 
 
 
 Use network reset
 
 Using network reset should be the last step you try. Consider using it if the steps above don’t help to get you connected.
 This can help solve connection problems you might have after upgrading from Windows 10 to Windows 11. It can also help to fix the problem where you can connect to the internet, but can't connect to shared network drives. Network reset removes any network adapters you have installed and the settings for them. After your PC restarts, any network adapters are reinstalled, and the settings for them are set to the defaults.
 
 
 Select Start  &gt; Settings  &gt; Network &amp; internet  &gt; Advanced network settings &gt; Network reset. Open Network &amp; Internet Status settings 
 
 
 
 On the Network reset screen, select Reset now &gt; Yes to confirm.
 
 
 
 Wait for your PC to restart, and see if that fixes the problem.
 
  Notes:  
 
 
 After using network reset, you might need to reinstall and set up other networking software you might be using, such as VPN client software or virtual switches from Hyper‑V (if you're using that or other network virtualization software).
 
 
 
 Network reset might set each one of your known network connections to a public network profile. In a public network profile, your PC is not discoverable to other PCs and devices on the network, which can help make your PC more secure. However, if your PC is used for file or printer sharing, you’ll need to make your PC discoverable again by setting it to use a private network profile. To do this, select Start  &gt; Settings  &gt; Network &amp; internet  &gt; Wi-Fi  . On the Wi-Fi screen, select Manage known networks &gt; the network connection you want to change. Under Network profile type, select Private.
 
 
 
 
 
 
 
  
 
 
 Check your Wi-Fi settings
 
 Wi-Fi adapter manufacturers might have different advanced settings you can change based on your network environment or connection preferences.
 Check the Wireless Mode setting for your network adapter and make sure it matches the capabilities of the network you’re trying to connect to. If it doesn’t match, you won’t be able to connect, and the network might not appear in the list of available networks. The Wireless Mode will often be set to Auto or something similar by default, which enables connection for every kind of network that’s supported.
 
 To find the wireless mode setting
 
 
 
 In Device Manager, select Network adapters, and then double-click the network adapter name.
 
 
 
 Select the Advanced tab and look for a Wireless Mode setting. Make sure it’s set to the mode your network is using.
 
 
 
 
 Wi-Fi profile settings
 
 Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.
 To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.
 
 To forget a network
 
 
 
 Select Start  &gt; Settings  &gt; Network &amp; internet .
 
 
 
 Select Wi-Fi , then select Manage known networks.
 
 
 
 Select the network you want to forget, then select Forget.
 
 
 
 Afterwards, select the Wi-Fi icon on the taskbar and try to reconnect to the network to renew the network connection.
 
 Check your home layout
 
 Your Wi-Fi network might be affected by the network's frequency band, channel congestion, and/or signal strength.  For more info, see Wi-Fi problems and your home layout.
 Check for additional symptoms for the "No internet connection" icon.
 There may be additional troubleshooting steps you can try, depending on which symptoms you're having. To view these steps, check out Wi-Fi connection icons and what they mean.
 
 Related topics
 
 
 
 
 Setting up a wireless network
 
 
 
 
 
 How to find your wireless network password
 
 
 
 
 
 Analyze the wireless network report
 
 
 
 
 
 Wi-Fi tools and apps
 
 
 
 
 
 Make a Wi-Fi network public or private in Windows
 
 
 
 
 
 
 
 
 
 
 Things to try first
 
 Try these things first to help you fix or narrow down the connection problem.
 
 
 Make sure Wi‑Fi is turned on. Select the "No internet connection" icon on the right side of the taskbar, and make sure Wi-Fi is turned on. If it isn't, select it to turn it on. Also, make sure Airplane mode is turned off.
 
 
 
 
 
 
 
 
 Afterwards, see if a Wi-Fi network you recognize and trust appears in the list of networks. If it does, select the Wi-Fi network, and they try to connect to it. If it says Connected underneath the network name, select Disconnect, wait a moment, and then select Connect again.
 
 
 
 Try connecting to a network on a different frequency band. Many consumer Wi-Fi routers broadcast at two different network frequency bands:  2.4 GHz and 5 GHz. These will appear as separate networks in the list of available Wi-Fi networks. If your list of available Wi-Fi networks includes both a 2.4 GHz network and a 5 GHz network, try connecting to the other network. To learn more about the differences between 2.4 GHz networks and 5 GHz networks, check out Wi-Fi problems and your home layout.
 
 
 
 Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)
 
 
 
 Run the Network troubleshooter. The Network troubleshooter can help diagnose and fix common connection problems.
 
 
 
 
 To run the Network troubleshooter
 
 
 
 Select the Start    button &gt; Settings &gt; Network &amp; Internet &gt; Status. Open Network &amp; Internet Status settings 
 
 
 
 Under Change your network settings, select Network troubleshooter.
 
 
 
 Follow the steps in the troubleshooter, and see if that fixes the problem.
 
 
 
 
 
 Restart your modem and wireless router. This helps create a new connection to your internet service provider (ISP).
 
 
	When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected. The steps you take to restart your modem and router can vary, but here are the general steps. (Note: If you have a cable modem/Wi-Fi router combo device, you only need to follow the steps for the single device.)
 
 
 Unplug the power cable for the router from the power source.
 
 
 
  Unplug the power cable for the modem from the power source.   
	Some modems have a backup battery. If you unplug the modem and lights stay on, remove the battery from the modem. 
 
 
 
  Wait at least 30 seconds or so. 
	If you had to remove the battery from the modem, put it back in. 
 
 
 
 Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.
 
 
 
  Plug your router back into the power source. 
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices. 
 
 
 
 On your PC, try to connect again.
 
 
 
 
 
 
 
 
 
  
 
 Connection problems can be due to a variety of reasons—problems with the website, your device, the Wi-Fi router, modem, or your Internet Service Provider (ISP). Try the following steps to help narrow down the source of the problem.
 
 
 If the "Wi-Fi connected" icon  appears on the right side of the taskbar, visit a different website. If the website opens, there might be a problem with the specific website. If you can't connect to another website, go to the next step.
 
 
 
 On another laptop or phone, try to connect to the same network. If you can connect, the source of the problem is likely due to your device—go to the section Network troubleshooting on your device. If you can't connect to the network on any device, continue to the next step.
 
 
 
 Check to see if there is a problem with the connection to your Wi-Fi router.  Do this by using a ping test.
 
 
 In the search box on the taskbar, type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator &gt; Yes.
 
 
 
 At the command prompt, type ipconfig, and then select Enter. Look for the name of your Wi-Fi network within the results, and then find the IP address listed next to Default gateway for that Wi-Fi network.  Write down that address if you need to. For example:  192.168.1.1 
 
 
 
 At the prompt, type ping &lt;DefaultGateway&gt; and then select Enter.  For example, type ping 192.168.1.1 and select Enter.  The results should be something like this:
 
 
 
 
 
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
 
 
 
 
 Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:  Minimum = 4ms, Maximum = 5ms, Average = 4ms
 
 
 
 If you see results like this and are getting a reply, then you have a connection to your Wi-Fi router, so there might be a problem with your modem or ISP. Contact your ISP or check online on another device (if you can) to see if there's a service outage.
 If the results of the ping test indicate that you are not getting a reply from the router, try connecting your PC directly to your modem by using an Ethernet cable (if you can). If you can connect to the internet using an Ethernet cable, it confirms the connection problem is due to the Wi-Fi router. Make sure you've installed the latest firmware and see the documentation for your router.
 
 
 
  
 
 
 Run network commands
 
 Try running these network commands to manually reset the TCP/IP stack, release and renew the IP address, and flush and reset the DNS client resolver cache:
 
 
 In the search box on the taskbar, type command prompt. The Command Prompt button will appear. To the right of it, select Run as administrator &gt; Yes.
 
 
 
 At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:
 
 
 Type netsh winsock reset and selectEnter . 
 
 
 
 Type netsh int ip reset and select Enter.
 
 
 
 Type ipconfig /release and select Enter.
 
 
 
 Type ipconfig /renew and select Enter.
 
 
 
 Type ipconfig /flushdns and select Enter.
 
 
 
 
 
 
 
 Uninstall the network adapter driver and restart
 
 If the previous steps didn’t work, try to uninstall the network adapter driver, and then restart your computer. Windows will automatically install the latest driver. Consider this approach if your network connection stopped working properly after a recent update.
 Before uninstalling, make sure you have drivers available as a backup. Visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.
 
 
 In the search box on the taskbar, type device manager, and then select Device Manager from the list of results.
 
 
 
 Expand Network adapters, and locate the network adapter for your device.
 
 
 
 Select the network adapter, press and hold (or right-click), and then select Uninstall device &gt; check the Attempt to remove the driver software for this device check box &gt; Uninstall.
 
 
 
 After uninstalling the driver, select the Start  button &gt; Power  &gt; Restart.
 After your PC restarts, Windows will automatically look for and install the network adapter driver. Check to see if that fixes your connection problem. If Windows doesn't automatically install a driver, try to install the backup driver you saved before uninstalling.
 
 
 
 
 Check if your network adapter is compatible with the latest Windows Update
 
 If you lost your network connection immediately after upgrading or updating Windows 10, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update:
 
 
 Select the Start  button, then select Settings    &gt; Update &amp; Security  &gt;Windows Update    &gt; View update history &gt;Uninstall updates.
 
 
 
 Select the most recent update, then select Uninstall.
 
 
 
 If uninstalling the most recent update restores your network connection, check to see if an updated driver is available:
 
 
 In the search box on the taskbar, type device manager, and then select Device Manager from the list of results.
 
 
 
 Expand Network adapters, and locate the network adapter for your device.
 
 
 
 Select the network adapter, select Update driver &gt;Search automatically for updated driver software, and then follow the instructions.
 
 
 
 After installing the updated driver, select the Start  button &gt; Power  &gt; Restart if you're asked to restart, and see if that fixes the connection issue.
 
 
 
 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. You’ll need to know the PC manufacturer and model name or number.
 Do one of the following:
 
 
 If you couldn’t download and install a newer network adapter driver, hide the update that’s causing you to lose your network connection. To learn how to hide updates, see Hide Windows Updates or driver updates.
 
 
 
 If you could successfully install updated drivers for your network adapter, then reinstall the latest updates. To do this, select the Start  button, then select Settings  &gt; Update &amp; Security  &gt; Windows Update  &gt; Check for updates.
 
 
 
 
 
 Use network reset
 
 Using network reset should be the last step you try. Consider using it if the steps above don’t help to get you connected.
 This can help solve connection problems you might have after upgrading from a previous version of Windows to Windows 10. It can also help to fix the problem where you can connect to the internet, but can't connect to shared network drives. Network reset removes any network adapters you have installed and the settings for them. After your PC restarts, any network adapters are reinstalled, and the settings for them are set to the defaults.
  Note: To use network reset, your PC must be running Windows 10 Version 1607 or later. To see which version of Windows 10 your device is currently running, select the Start button, then select Settings &gt; System &gt; About.
 
 
 Select the Start  button, then select Settings    &gt; Network &amp; Internet  &gt; Status &gt; Network reset. Open Network &amp; Internet Status settings 
 
 
 
 On the Network reset screen, select Reset now &gt; Yes to confirm.
 Wait for your PC to restart, and see if that fixes the problem.
 
 
 
 
  Notes:  
 
 
 After using network reset, you might need to reinstall and set up other networking software you might be using, such as VPN client software or virtual switches from Hyper‑V (if you're using that or other network virtualization software).
 
 
 Network reset might set each one of your known network connections to a public network profile. In a public network profile, your PC is not discoverable to other PCs and devices on the network, which can help make your PC more secure. However, if your PC is used for file or printer sharing, you’ll need to make your PC discoverable again by setting it to use a private network profile. To do this, select the Start  button, then select Settings  &gt; Network &amp; Internet  &gt; Wi-Fi   . On the Wi-Fi screen, select Manage known networks &gt; the network connection you want to change &gt; Properties. Under Network profile, select Private.
 
 
 
 
 
 
  
 
 
 Check your Wi-Fi settings
 
 Wi-Fi adapter manufacturers might have different advanced settings you can change based on your network environment or connection preferences.
 Check the Wireless Mode setting for your network adapter and make sure it matches the capabilities of the network you’re trying to connect to. If it doesn’t match, you won’t be able to connect, and the network might not appear in the list of available networks. The Wireless Mode will often be set to Auto or something similar by default, which enables connection for every kind of network that’s supported.
 
 To find the wireless mode setting
 
 
 
 In Device Manager, select Network adapters, and then double-click the network adapter name.
 
 
 
 Select the Advanced tab and look for a Wireless Mode setting. Make sure it’s set to the mode your network is using.
 
 
 
 
 Wi-Fi profile settings
 
 Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.
 To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.
 
 To forget a network
 
 
 
 Select the Wi-Fi network  icon on the right side of the taskbar, then select Network &amp; Internet settings.
 
 
 
 Select Wi-Fi   , then select Manage known networks.
 
 
 
 Select the network you want to forget, then select Forget.
 
 
 
 Afterwards, select the Wi-Fi icon on the taskbar and try to reconnect to the desired network to renew the network connection.
 
 Check your home layout
 
 Your Wi-Fi network might be affected by the network's frequency band, channel congestion, and/or signal strength.  For more info, see Wi-Fi problems and your home layout.
 Check for additional symptoms for the "No internet connection" icon  
 There may be additional troubleshooting steps you can try, depending on which symptoms you're having. To view these steps, check out Wi-Fi connection icons and what they mean.
 
 Related topics
 
 
 
 
 Setting up a wireless network
 
 
 
 
 
 How to find your wireless network password
 
 
 
 
 
 Analyze the wireless network report
 
 
 
 
 
 Wi-Fi tools and apps
 
 
 
 
 
 Make a Wi-Fi network public or private in Windows 10
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 Make sure Wi-Fi is turned on.
 
 
 Swipe in from the right edge of the screen, select Settings, then select the Network icon.
 
 
 
 Turn on Wi-Fi.
 
 
 
 
 
 
 Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)
 
 
 
 Make sure your PC isn’t in airplane mode.
 
 
 Swipe in from the right edge of the screen, select Settings, then select the Network icon.
 
 
 
 Turn off Airplane mode.
 
 
 
 
 
 
 Move closer to the router or access point if you can.
 
 
 
 If you don’t see the network name at all, the router or access point might not be set to broadcast the network name. In this case, you’ll need to connect to it manually.
 
 
 Swipe in from the right edge of the screen, and then select Settings.
 
 
 
 Select the Network icon, and then select Hidden network.
 
 
 
 Type the network name and select Next.
 
 
 
 Type the password and select Next.
 
 
 
 Follow any additional instructions to get connected.
 
 
 
 
 
 
 The network will be added to your list of networks and will be available to connect to when your computer is in range of the network. To connect to the network, follow these steps:
 
 
 Open Connect to a Network by selecting the network icon in the notification area.
 
 
 
 Select Unnamed Network, select Connect, and then type the network information. The network will be added to your list of networks and will be available to connect to in the future when your computer is in range of the network..
 
 
 
 
 
 
 
 
 
  
 
 Let Windows try to help you fix the problem. Try running the Network troubleshooter to see if it can diagnose and fix the problem.
 Select the Start  button, start typing Network problems, and then select Identify and repair network problems in the list.
 
 
 
  
 
 The Network Troubleshooter (mentioned above) can help diagnose and fix common connection problems. After using that, try running the network commands below because the combination of doing these two things can help you get connected.
 If your problem isn’t fixed after running the Network troubleshooter, try to:
 
 
 Reset the TCP/IP stack.
 
 
 
 Release the IP address.
 
 
 
 Renew the IP address.
 
 
 
 Flush and reset the DNS client resolver cache.
 
 
 
 Here's how to run networking commands in a command prompt:
 
 
 Select the Start  button, start typing cmd, right-click Command Prompt in the list, select Run as Administrator, and then select Yes.
 
 
 
 At the command prompt, run the following commands in the listed order and then check to see if that fixes your connection problem:
 
 
 Type netsh winsock reset and press Enter.
 
 
 
 Type netsh int ip reset and press Enter.
 
 
 
 Type ipconfig /release and press Enter.
 
 
 
 Type ipconfig /renew and press Enter.
 
 
 
 Type ipconfig /flushdns and press Enter.
 
 
 
 
 
 
 
 
 
  
 
 This helps create a new connection to your Internet service provider (ISP). When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected.
 The steps you take to restart your modem and router can vary, but here are the general steps:
 
 
 Unplug the power cable for the router from the power source.
 
 
 
  Unplug the power cable for the modem from the power source. 
	Some modems have a backup battery. So if you unplug the modem and lights stay on, remove the battery from the modem. 
 
 
 
  Wait at least 30 seconds or so. 
	If you had to remove the battery from the modem, put it back in. 
 
 
 
 Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.
 
 
 
  Plug your router back into the power source. 
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices. 
 
 
 
 On your PC, try to connect again.
 
 
 
 
 
 
  
 
 Make sure it’s not a problem with your cable modem or Internet service provider (ISP). If it is, contact your ISP.
 
 
 Select the Start  button, start typing cmd, right-click Command Prompt in the list, select Run as Administrator, and then select Yes.
 
 
 
  At the command prompt, type ipconfig. 
	Look for the IP address listed next to Default gateway. Write down that address if you need to. For example, 192.168.1.1. 
 
 
 
  At the prompt, type ping &lt;Default gateway&gt; and press Enter. For example, type ping 192.168.1.1 and press Enter. 
	The result should be something like this: 
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms 
 
 
 
 If the ping is successful and you see results similar to the results above, but you can’t connect to the Internet on your PC, there may be a problem with your modem or Internet service provider (ISP).
 
 
 
  
 
 If you’re still having trouble connecting to a network, it might be related to your network adapter.
 
 
  Try using the Network Adapter troubleshooter to automatically find and fix some problems. This troubleshooter will disable and re-enable the adapter, and try some other common repairs.  
	Select the Start  button, start typing Troubleshooting, and then select Troubleshooting in the list. Select View all &gt; Network Adapter. 
 
 
 
 Update the network adapter driver. An outdated or incompatible network adapter driver can cause connection problems. Check to see if an updated driver is available.
 
 
 Select the Start  button, start typing Device Manager, and then select it in the list.
 
 
 
 In Device Manager, select Network adapters, right-click your adapter, and then select Properties.
 
 
 
 Select the Driver tab, and then select Update Driver.
 
 
 
 Select Search automatically for updated driver software.
 
 
 
 
 
 
 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the Internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.
 
 
 
  
 
 Here are some things to check and try with your router if you’re at home and having trouble getting connected.
 
 
 If you don't see the network name, sign in to your router and check to see if it’s set to broadcast the network name.
 
 
 Connect your PC to your router using an Ethernet cable.
 
 
 
 Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)
 
 
 
 Sign in with your user name and password, then make sure an option labeled Enable SSID Broadcast, Wireless SSID broadcast, or something similar is turned on. This setting is often on a Wireless Settings page.
 
 
 
 
 
 
 Check to see if your Wi-Fi network uses Media Access Control (MAC) address filtering for security. If it does, you’ll need to add the MAC address for your PC to the access list on your router before you can connect.
 
 
 Select the Start  button. Start typing cmd and right-click Command Prompt in the list. Select Run as Administrator, and then select Yes.
 
 
 
  At the command prompt, type ipconfig /all. 
	Write down the address that appears next to Physical Address for your wireless network adapter. This is the address you’ll need to add to the access list on your router. 
 
 
 
 To add the MAC address to the access list on your router:
 
 
 Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)
 
 
 
 Sign in with your user name and password, then look for a setting that says MAC Address Filter or something similar.
 
 
 
 Add the MAC address you wrote down for your PC to the access list and save your changes.
 
 
 
 On your PC, try to connect to the Wi-Fi network again.
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 Make sure Wi-Fi is turned on.
 
 
 On a laptop, open Windows Mobility Center by selecting the Start   button and then selecting Control Panel &gt; Mobile PC &gt; Windows Mobility Center.
 
 
 
 Look in the Wireless Network section. If Wi-Fi is on, the button should say Turn wireless off.
 
 
 
 
 
 
 Make sure the physical Wi‑Fi switch on your laptop is turned on. (An indicator light usually shows when it's on.)
 
 
 
 Check and make sure your PC isn’t in airplane mode.
 
 
 
 Move closer to the router or access point if you can.
 
 
 
 If you don’t see the network name at all, the router or access point might not be set to broadcast the network name. In this case, you’ll need to connect to it manually.
 
 
 Open Manage Wireless Networks by selecting the Start   button, and then selecting Control Panel. In the search box , type wireless and then select Manage wireless networks.
 
 
 
 Select Add, and then select Manually create a network profile.
 
 
 
 Type the network information.
 
 
 
 If you want Windows to automatically connect when the network is in range, select the Start this connection automatically check box.
 
 
 
 Select the Connect even if the network is not broadcasting check box, select Next, and then select Close.
 
 
 
 
 
 
 The network will be added to your list of networks and will be available to connect to when your computer is in range of the network. To connect to the network, follow these steps:
 
 
 Open Connect to a Network by selecting the network icon in the notification area.
 
 
 
 Select Unnamed Network, select Connect, and then type the network information. The network will be added to your list of networks and will be available to connect to in the future when your computer is in range of the network..
 
 
 
 
 
 
 
 
 
  
 
 Let Windows try to help you fix the problem. Try running the Network troubleshooter to see if it can diagnose and fix the problem.
 Open the Network troubleshooter by right-clicking the network icon in the notification area and then selecting Troubleshoot problems.
 
 
 
  
 
 The Network Troubleshooter (mentioned above) can help diagnose and fix common connection problems. After using that, try running the network commands below because the combination of doing these two things can help you get connected.
 If your problem isn’t fixed after running the Network troubleshooter, try to:
 
 
 Reset the TCP/IP stack.
 
 
 
 Release the IP address.
 
 
 
 Renew the IP address.
 
 
 
 Flush and reset the DNS client resolver cache.
 
 
 
 Here's how to run networking commands in a command prompt:
 
 
 Select the Start button  . Type cmd in the search box, right-click cmd in the list, select Run as administrator, and then select Yes.
 
 
 
 At the command prompt, run the following commands in the listed order and then check to see if that fixes your connection problem:
 
 
 Type netsh winsock reset and press Enter.
 
 
 
 Type netsh int ip reset and press Enter.
 
 
 
 Type ipconfig /release and press Enter.
 
 
 
 Type ipconfig /renew and press Enter.
 
 
 
 Type ipconfig /flushdns and press Enter.
 
 
 
 
 
 
 
 
 
  
 
 This helps create a new connection to your Internet service provider (ISP). When you do this, everyone that is connected to your Wi-Fi network will be temporarily disconnected.
 The steps you take to restart your modem and router can vary, but here are the general steps:
 
 
 Unplug the power cable for the router from the power source.
 
 
 
  Unplug the power cable for the modem from the power source. 
	Some modems have a backup battery. So if you unplug the modem and lights stay on, remove the battery from the modem. 
 
 
 
  Wait at least 30 seconds or so. 
	If you had to remove the battery from the modem, put it back in. 
 
 
 
 Plug the modem back into the power source. The lights on the modem will blink. Wait for them to stop blinking.
 
 
 
  Plug your router back into the power source. 
	Wait a few minutes for the modem and router to fully power on. You can usually tell when they’re ready by looking at the status lights on the two devices. 
 
 
 
 On your PC, try to connect again.
 
 
 
 
 
 
  
 
 Make sure it’s not a problem with your cable modem or Internet service provider (ISP). If it is, contact your ISP.
 
 
 Select the Start button . Type cmd in the search box, right-click cmd in the list, select Run as administrator, and then select Yes. 
 
 
 
  At the command prompt, type ipconfig. 
	Look for the IP address listed next to Default gateway. Write down that address if you need to. For example, 192.168.1.1. 
 
 
 
  At the prompt, type ping &lt;Default gateway&gt; and press Enter. For example, type ping 192.168.1.1 and press Enter. 
	The result should be something like this: 
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Reply from 192.168.1.1: bytes=32 time=5ms TTL=64
	Ping statistics for 192.168.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 4ms, Maximum = 5ms, Average = 4ms 
 
 
 
 If the ping is successful and you see results similar to the results above, but you can’t connect to the Internet on your PC, there may be a problem with your modem or Internet service provider (ISP).
 
 
 
  
 
 If you’re still having trouble connecting to a network, it might be related to your network adapter.
 
 
  Try using the Network Adapter troubleshooter to automatically find and fix some problems. This troubleshooter will disable and re-enable the adapter, and try some other common repairs. 
	Open the Network Adapter troubleshooter by selecting the Start button and then selecting Control Panel. In the search box, type troubleshooter and then select Troubleshooting &gt; View all &gt; Network Adapter. 
 
 
 
 Update the network adapter driver. An outdated or incompatible network adapter driver can cause connection problems. Check to see if an updated driver is available.
 
 
 Open Device Manager by selecting the Start button , selecting Control Panel, selecting System and Security, and then, under System, selecting Device Manager  . If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
 
 
 
 In Device Manager, select Network adapters, right-click your adapter, and then select Properties.
 
 
 
 Select the Driver tab, and then select Update Driver.
 
 
 
 Select Search automatically for updated driver software.
 
 
 
 
 
 
 If Windows can’t find a new driver for your network adapter, visit the PC manufacturer’s website and download the latest network adapter driver from there. If your PC can't connect to the Internet, you'll need to download a driver on a different PC and save it to a USB flash drive so you can install the driver on your PC. You’ll need to know the PC manufacturer and model name or number.
 
 
 
  
 
 Here are some things to check and try with your router if you’re at home and having trouble getting connected.
 
 
 If you don't see the network name, sign in to your router and check to see if it’s set to broadcast the network name.
 
 
 Connect your PC to your router using an Ethernet cable.
 
 
 
 Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)
 
 
 
 Sign in with your user name and password, then make sure an option labeled Enable SSID Broadcast, Wireless SSID broadcast, or something similar is turned on. This setting is often on a Wireless Settings page.
 
 
 
 
 
 
 Check to see if your Wi-Fi network uses Media Access Control (MAC) address filtering for security. If it does, you’ll need to add the MAC address for your PC to the access list on your router before you can connect.
 
 
 Select the Start   button. Type cmd in the search box and right-click cmd in the list. Select Run as administrator, and then select Yes.
 
 
 
  At the command prompt, type ipconfig /all. 
	Write down the address that appears next to Physical Address for your wireless network adapter. This is the address you’ll need to add to the access list on your router. 
 
 
 
 To add the MAC address to the access list on your router:
 
 
 Open your web browser and type the IP address for your wireless router. (For example, 192.168.1.1 or 172.16.0.0—check the documentation for your router to find the default IP address.)
 
 
 
 Sign in with your user name and password, then look for a setting that says MAC Address Filter or something similar.
 
 
 
 Add the MAC address you wrote down for your PC to the access list and save your changes.
 
 
 
 On your PC, try to connect to the Wi-Fi network again.
Fix Wi-Fi connection issues in Windows
https://support.microsoft.com/en-us/windows/fix-wi-fi-connection-issues-in-windows-9424a1f7-6a3b-65a6-4d78-7f07eee84d2c
https://lars.ingebrigtsen.no/2015/05/01/useful-consumer-review-22/#respond
Useful Consumer Review
2015-05-01
Author larsmagne
<div><div><main><article><div><p>I read somewhere that Toshiba FlashAir (SD cards with wifi built in) was supposed to be kinda nice.</p><p><a href="https://lars.ingebrigtsen.no/wp-content/uploads/2015/05/img_0365.jpg"></a>And it is!  It’s very hackable and <a href="https://web.archive.org/web/https://flashair-developers.com/en/documents/tutorials/advanced/1/">easy to configure from Linux</a>.  You just mount the card, edit a simple text configuration file (to set the SSID and the passphrase), and it’ll connect to your wifi access point just like that.</p><p>It runs an HTTP server on the card, too, so to download the photos, you just use HTTP.  However, you can’t just use wget or rsync, as you’d expect, because the interface is all JavaScript.  For no reason at all.  The file names and sizes just contained in a long JS array, and you have to parse that to download stuff automatically.  Sigh.</p><p>Fortunately a kind person has written <a href="https://github.com/cyborg-x1/PyFlashAero">a Python script to do just that</a>.</p><p>So I put the card into my Sony RX 100 II camera, snap some pictures and then I place the camera within five meters of the AP.  Because the range sucks.</p><p><a href="https://lars.ingebrigtsen.no/wp-content/uploads/2015/05/img_0364.jpg"></a>This being wireless, it doesn’t work reliably.  Nine times out of ten, it’ll connect to the AP.  Sometimes it just sits there.  It’s even worse when I’m walking with it switched on in and out of range, because then it just gets…  stuck.  Often with a half downloaded image.</p><p>To work around the latter problem, <a href="https://github.com/larsmagne/PyFlashAero">I forked PyFlashAero</a> and made it re-download files that have different file sizes.</p><p>But over all, it works much better than expected.  I mean, for a wireless product, it’s good. Not having to fiddle around with the SD card and card readers is really nice.</p><p>In the meantime, I don’t think we have to worry about our robot overlords taking over the world any time soon.</p></div></article><nav><h2>Post navigation</h2></nav></main></div>||||I|||| Skip to content

 Random Thoughts

 The Sky Won't Fall?

 Menu and widgets

 About

 Lars Ingebrigtsen

 Blog In Progress

 The Entire Kitchen Sink

 Recent Posts

 * Mastodon Is Going Great
 * Comics Daze
 * Twitter Account Probably Going Away
 * Jazz Show
 * January Music
 * Jazz Show
 * PX Stuff
 * Comics Daze
 * Comics Daze
 * A Panel From A Comic Book Presented Without Comment

 Featured

 Recent Comments

 * Give Me a Sailor – Moving Pictures on MCMXXXIX XV: Never Say Die
 * Davide on Mastodon Is Going Great
 * jonathan baylis on Comics Daze
 * asjo on Twitter Account Probably Going Away
 * Alt Comics: Josh Pettinger + News & Links. – ALTERNATIVE COMICS on Comics Daze
 * Yusef Aslam on Building the Development Version of Emacs on OpenBSD
 * larsmagne23 on Building the Development Version of Emacs on OpenBSD
 * Yusef Aslam on Building the Development Version of Emacs on OpenBSD
 * Alt Comics #1.2: John G. Miller + News & Links. – ALTERNATIVE COMICS on Comics Daze
 * 1992: Hypnotic Tales | The Entire Kitchen Sink on PX92: Hypnotic Tales

 Movies

 The World
 Officially The Best
 Tilda Swinton
 Ingmar Bergman
 Netflix 2019
 Decade
 MCMXXXIX
 Moving Pictures

 Comics

 Fantagraphics
 Eclipse Comics
 Pacific Comics
 Epic Comics
 Vortex
 Elaine Lee
 AV & Renegade
 Punk Comix

 Archives

 Archives Select Month February 2023 January 2023 December 2022 November 2022 October 2022 September 2022 August 2022 July 2022 June 2022 May 2022 April 2022 March 2022 February 2022 January 2022 December 2021 November 2021 October 2021 September 2021 August 2021 July 2021 June 2021 May 2021 April 2021 March 2021 February 2021 January 2021 December 2020 November 2020 October 2020 September 2020 August 2020 July 2020 June 2020 May 2020 April 2020 March 2020 February 2020 January 2020 December 2019 November 2019 October 2019 September 2019 August 2019 July 2019 June 2019 May 2019 April 2019 March 2019 February 2019 January 2019 December 2018 November 2018 October 2018 September 2018 August 2018 July 2018 June 2018 May 2018 April 2018 March 2018 February 2018 January 2018 December 2017 November 2017 October 2017 September 2017 August 2017 July 2017 June 2017 May 2017 April 2017 March 2017 February 2017 January 2017 December 2016 November 2016 October 2016 September 2016 August 2016 July 2016 June 2016 May 2016 April 2016 March 2016 February 2016 January 2016 December 2015 November 2015 October 2015 September 2015 August 2015 July 2015 June 2015 May 2015 April 2015 March 2015 February 2015 January 2015 December 2014 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 April 2013 March 2013 February 2013 January 2013 December 2012 November 2012 October 2012 September 2012 August 2012 July 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December 2011 November 2011 October 2011 September 2011 July 2011 May 2011 April 2011 March 2011 February 2011 January 2011

 Now Playing

 Categories

 * 1939
 * 1995
 * 4AD
 * A&R
 * animals
 * baking
 * bd80
 * Bergman
 * bistro
 * books
 * bookvember
 * Carpenter
 * cccb
 * century
 * comics
 * computers
 * consumerism
 * cooking
 * couture
 * daze
 * Decade
 * Eclipse
 * Elaine Lee
 * Emacs
 * fantagraphics
 * food
 * furniture
 * gadgets
 * gmane
 * Hellraiser
 * holiday
 * horticulture
 * linux
 * live
 * movies
 * music
 * mysteries
 * Netflix
 * New Music
 * No Comment
 * OTB
 * programming
 * Punk Comix
 * review
 * rocktober
 * rockvember
 * The World
 * Tilda Swinton
 * Uncategorized
 * vortex
 Search for:

 Useful Consumer Review

 I read somewhere that Toshiba FlashAir (SD cards with wifi built in) was supposed to be kinda nice.

 And it is! It’s very hackable and easy to configure from Linux. You just mount the card, edit a simple text configuration file (to set the SSID and the passphrase), and it’ll connect to your wifi access point just like that.

 It runs an HTTP server on the card, too, so to download the photos, you just use HTTP. However, you can’t just use wget or rsync, as you’d expect, because the interface is all JavaScript. For no reason at all. The file names and sizes just contained in a long JS array, and you have to parse that to download stuff automatically. Sigh.

 Fortunately a kind person has written a Python script to do just that.

 So I put the card into my Sony RX 100 II camera, snap some pictures and then I place the camera within five meters of the AP. Because the range sucks.

 This being wireless, it doesn’t work reliably. Nine times out of ten, it’ll connect to the AP. Sometimes it just sits there. It’s even worse when I’m walking with it switched on in and out of range, because then it just gets… stuck. Often with a half downloaded image.

 To work around the latter problem, I forked PyFlashAero and made it re-download files that have different file sizes.

 But over all, it works much better than expected. I mean, for a wireless product, it’s good. Not having to fiddle around with the SD card and card readers is really nice.

 In the meantime, I don’t think we have to worry about our robot overlords taking over the world any time soon.

 Like this:

 Like Loading...

 Related Articles

 Posted on May 1, 2015March 31, 2020 Author larsmagne23 Categories gadgets

 One thought on “Useful Consumer Review”

 1. Pingback: Live Camera/Emacs Link | Random Thoughts

 Leave a Reply

 Post navigation

 Previous Previous post: Chirp Chirp
 Next Next post: Language News
 Proudly powered by WordPress
 %d bloggers like this:
I read somewhere that Toshiba FlashAir (SD cards with wifi built in) was supposed to be kinda nice.   And it is!  It’s very hackable and easy to configure from Linux.  You just mount the card, edit a simple text configuration file (to set the SSID and the passphrase), and it’ll connect to your wifi access point just like that. It runs an HTTP server on the card, too, so to download the photos, you just use HTTP.  However, you can’t just use wget or rsync, as you’d expect, because the interface is all JavaScript.  For no reason at all.  The file names and sizes just contained in a long JS array, and you have to parse that to download stuff automatically.  Sigh. Fortunately a kind person has written a Python script to do just that. So I put the card into my Sony RX 100 II camera, snap some pictures and then I place the camera within five meters of the AP.  Because the range sucks.   This being wireless, it doesn’t work reliably.  Nine times out of ten, it’ll connect to the AP.  Sometimes it just sits there.  It’s even worse when I’m walking with it switched on in and out of range, because then it just gets…  stuck.  Often with a half downloaded image. To work around the latter problem, I forked PyFlashAero and made it re-download files that have different file sizes. But over all, it works much better than expected.  I mean, for a wireless product, it’s good. Not having to fiddle around with the SD card and card readers is really nice. In the meantime, I don’t think we have to worry about our robot overlords taking over the world any time soon.    Post navigation
Useful Consumer Review
https://lars.ingebrigtsen.no/2015/05/01/useful-consumer-review-22/