Many people are familiar with the situation of urgently needing to get online, but access to the router is blocked due to the loss of the security key. Users often wonder how to connect to WiFi on a laptop if they forgot the password, especially when they don't have other devices with saved data nearby. Fortunately, modern operating systems and network equipment offer several solutions to this problem without having to completely reset the router.
Restoring access is possible using various methods, depending on your operating system and access to the router's physical ports. We'll cover proven methods, from viewing saved keys in Windows to using WPS and mobile apps. Follow the instructions carefully will allow you to regain access to the Internet in a matter of minutes.
It's worth noting that methods may vary depending on your operating system version and router model. Some methods require a wired connection, while others work exclusively over a wireless interface. Understanding network security principles will help you not only solve the current problem but also better protect your network in the future.
Viewing a saved password in Windows
If your laptop has previously connected to this wireless network, the operating system has saved the access key. This is the easiest and fastest way to connect to WiFi on a laptop if you've forgotten the password, without having to resort to complex router manipulation. Windows stores this data in a secure vault accessible through the standard network settings.
First, you need to open the Network and Sharing Center. Right-click the WiFi icon in the system tray and select "Open Network and Internet settings," then go to "Change adapter settings." In the window that opens, find your wireless connection, right-click it, and select "Status." Next, click "Wireless Network Properties" and go to the "Security" tab.
On the Security tab, you'll see the "Network Security Key" field hidden by asterisks. To see the actual password, you'll need to check the "Show characters as you type" box. Then Windows It will request administrator rights, and the key will become visible in text format. Write it down or copy it for future reference.
⚠️ Note: If you don't have administrator rights on this computer, this method won't work. You'll need an account with elevated privileges to view saved security keys.
An alternative method for more advanced users is to use the command line. Open the command line as administrator and enter the command to display all saved WiFi profiles. This will list all networks the laptop has ever connected to.
netsh wlan show profiles
Once you have the list, find your network name and use the following command to display the key. Replace "NetworkName" with the exact name of your WiFi connection.
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the line "Key Content," which will contain the password you're looking for. This method is especially useful if the Windows graphical interface isn't working correctly.
What to do if the command fails?
If the system reports an access error, make sure you launched the command prompt as an administrator. Running the command prompt as an administrator won't grant you the necessary permissions to read system security keys. Also, make sure the WLAN AutoConfig service is running.
Using WPS to connect without entering a key
WPS (Wi-Fi Protected Setup) technology was developed specifically to simplify connecting devices to a wireless network. If you're looking for a way to connect to WiFi on a laptop if you've forgotten the password, and your router supports this feature, the task is significantly simplified. WPS allows you to establish a secure connection with the press of a button or a PIN code.
Most modern routers have a physical button labeled "WPS" or an icon resembling two arrows forming a circle. To connect, press and hold this button on the router for 1-2 seconds. The WPS indicator on the device should start blinking, indicating that the connection is pending.
On a laptop running Windows 10 or 11, click the WiFi icon in the system tray and select your network. Instead of a password field, the system may offer a WPS connection. If no automatic suggestion is made, select your network from the list of available networks and click "Connect." Then press the "Connect" button on the router within two minutes.
There's also a PIN connection method, which is often indicated on a sticker on the bottom of the router. In Windows, when selecting a network, you can select "Enter a PIN instead of a key." However, this method is less secure and not supported by all wireless adapter drivers.
⚠️ Warning: WPS technology has known security vulnerabilities. After a successful connection, we recommend disabling WPS in your router settings to prevent unauthorized access to your network.
It's important to understand that WPS only works for a short time after you press the button. If your laptop doesn't connect, you'll have to repeat the process. Also, some router manufacturers, such as TP-Link And Asus, may have their own implementations of this function in their utilities.
Accessing router settings via cable
If a wireless connection is impossible and the password is lost, a wired connection remains the most secure method. By connecting your laptop to the router via a LAN cable (Ethernet), you can access the device's web interface without having to enter the WiFi key. This is a universal solution to the question of how to connect WiFi to a laptop if you forgot the password, and it works for 99% of router models.
Take a network cable and connect one of the yellow LAN ports on the router to the network port on your laptop. Once the physical connection is established, open a browser and enter the router's IP address in the address bar. This is most often 192.168.0.1 or 192.168.1.1, but the exact address can be found on the sticker on the bottom of the device.
To log in, you'll need the administrator username and password. By default, this is often admin/admin, but if you've changed these details before and forgot them, you'll need to reset the router. After successfully logging in, go to the Wireless (or WiFi) section.
| Router brand | Standard IP | Default login | Default password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| Asus | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Netgear | 192.168.1.1 | admin | password |
| Zyxel | 192.168.1.1 | admin | 1234 |
In the wireless network settings section, find the "Password" or "Security Key" (Pre-Shared Key) field. Here you can view the current password or set a new one. After saving the settings, be sure to reconnect your laptop to WiFi using the new key.
Mobile apps and QR codes
Modern smartphones often serve as a convenient tool for managing your home network. If you have an Android smartphone that's already connected to WiFi, you can find the password and transfer it to your laptop. This is especially important, as many users aren't aware that Android allows you to view saved keys.
On smartphones running Android 10 and above, go to WiFi settings and tap the name of the connected network. The system will prompt you to show the password or generate a QR code to connect other devices. Scanning this code with your laptop's camera (if available) or simply viewing the password will resolve the access issue.
For owners of popular brand routers, there are specialized applications such as Tether for TP-Link or Asus RouterThese apps allow you to manage your router settings directly from your phone, even if your laptop isn't connected. The app also lets you easily change your WiFi password to a simpler one or view the current one.
If you have an iPhone, the situation is more complicated due to the closed nature of iOS. However, if you have another Apple device nearby (Mac or iPad) that is already connected to the network, the password can sync via iCloud Keychain. On a Mac, you can find the password in Keychain by searching for your network name.
⚠️ Note: Mobile app interfaces and Android settings may differ depending on the firmware version and manufacturer's user interface (MIUI, OneUI, ColorOS). The layout of elements may vary.
Using a QR code isn't just a way to see the password, it's also a quick connection method. Some Windows 11 laptops have a built-in QR code scanning feature for quickly connecting to WiFi, eliminating the need to manually enter characters.
Resetting the router to factory settings
When none of the gentler methods help, a radical but effective solution remains: a complete reset of the router settings (hard reset). This method is guaranteed to restore access to the device, but will require reconfiguring all internet settings. Use this method for connecting WiFi on a laptop if you forgot the password only as a last resort.
On the back of the router, locate the small indentation labeled "Reset" or "Hole." Take a paperclip or toothpick, press the button inside the hole, and hold it for 10-15 seconds while the router is powered on. The lights on the front panel should blink or turn off, indicating the reset process has begun.
After rebooting, the router will return to factory settings. The WiFi password will be the one on the sticker on the bottom of the device (or will disappear if the network was open by default). You will need to connect to the network with the factory name and password, and then reconfigure the connection type (PPPoE, L2TP, or Dynamic IP) provided by your ISP.
☑️ Checklist before resetting your router
Without a login and password for a PPPoE or L2TP connection, the Internet will not work, even if WiFi is available.
Password prevention and management
To avoid losing access in the future, it is recommended to implement a password management system. Modern password managers, such as KeePass, Bitwarden or built-in browser solutions allow you to securely store complex access keys. This eliminates the need to remember numerous character combinations.
It's also a good idea to create a backup of your router settings. Many models allow you to save the current configuration to a file on your computer. If a problem occurs, you can quickly restore the settings by simply uploading this file back to the router via the web interface.
Create passwords that are easy to remember but difficult to guess. Use phrases or word combinations with letters replaced by numbers. For example, the phrase "MyCatLovesFish2026" will be much more secure and memorable than a random string of characters.
Update your router firmware regularly. Manufacturers are constantly improving management interfaces and adding access recovery features. New software versions can offer more convenient ways to manage your network through cloud services linked to your account.
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if the laptop has never connected to this network?
Without access to the router (via cable or WPS button) or another device that's already connected, it's impossible to find the password. WiFi security protocols (WPA2/WPA3) prevent anyone from intercepting or guessing the key without prior authorization.
What should I do if the WPS button on my router doesn't work?
The WPS function may be disabled in your router settings or may not be supported by your model. In this case, use a wired connection (LAN cable) to access the web interface or perform a full reset of the device.
Will resetting the router work if I don't know my provider's information?
A reset will restore access to your router settings, but to access the internet, you'll need the login and password provided by your ISP. If you don't know them, contact your ISP's technical support.
Is it safe to use WiFi hacking software?
Using third-party software to crack passwords (brute force) can be illegal and often results in computer viruses. Legal methods for restoring access through Windows or router settings are much safer and more effective.