How to view your Wi-Fi password on a PC with a cable connection

It's quite common to need to share a wireless network password with new guests or connect an additional device without remembering the password combination. This is especially true for desktop computers connected directly to the router via an Ethernet cable, as Windows doesn't store wireless security keys in plain text in their network settings, as it does with already connected laptops.

However, a physical cable connection gives you full LAN administrator privileges, allowing you to access the router's configuration or query stored data from the central distribution node. There are several proven methods access recovery that does not require resetting the equipment to factory settings, which would save you from having to reconfigure your Internet connection.

In this article, we'll detail the steps for retrieving lost information in the Windows operating system. You'll learn how to use built-in command-line utilities to query the router and how to access the device's web interface to view security settings in graphical mode.

Using the command line to query a router

The fastest way to get the necessary information without logging into the router's web interface is to use the Windows management console. This method works if your computer already has a network connection to the router, even if it's via a LAN cable rather than Wi-Fi.

First, you need to launch the terminal with administrator rights. Press the key combination Win + R, enter cmd and press Enter, or find "Command Prompt" in the Start menu, right-click and select "Run as administrator".

The first step is to determine the IP address of the default gateway, which is usually the same as the router itself. Enter the command ipconfig and find the line "Default gateway." Write down this address; you'll need it later.

Next we use the utility netsh, which allows you to manage network configurations. Enter the command netsh wlan show profilesEven if the PC does not have a Wi-Fi adapter or it is disabled, this command can show profiles known to the system if they have been synced or saved previously.

⚠️ Attention: If your desktop computer does not have a Wi-Fi module at all, the command netsh wlan You may receive an error stating that the wireless network service is not running or the interface is not found. In this case, proceed to the next section on logging into the router.

If the command was successful, you'll see a list of all saved profiles. To find the password for a specific profile, enter the command: netsh wlan show profile name="Network_Name" key=clearLook for the "Key Content" line in the "Security Settings" section.

Logging into the router's web interface via cable

The most universal method, guaranteed to work regardless of whether your PC has a Wi-Fi adapter, is to log into the router's control panel. Since you're connected via cable, you're within the local network and have direct access to the device's admin panel.

Open any browser (Chrome, Firefox, Edge) and in the address bar enter the gateway IP address, which we found out earlier through ipconfigMost often these are addresses 192.168.0.1, 192.168.1.1 or 192.168.31.1.

The system will ask for your login and password to access the router settings. If you've never changed these details, they'll be found on a sticker on the bottom of the device. The default pairs often look like this: admin/admin or admin/password.

After successful authorization, you need to find the section responsible for the wireless network. Interfaces vary greatly from manufacturer to manufacturer, but the logic is the same. Look for tabs with the following names:

  • 📡 Wireless
  • 📡 Wi-Fi Network
  • 📡 Wireless mode
  • 📡 WLAN

Within this section, find the "Security" or "Security Settings" subsection. This is where your current passphrase will be displayed in the "Password, Pre-Shared Key, or WPA/WPA2 passphrase" field. Some router models hide the characters behind asterisks, but there's often a "Show" or "Eye" button next to it.

📊 What brand of router do you have at home?
TP-Link
Asus
Keenetic
D-Link
Another

Finding a password depending on your router model

Navigating the admin panel menu can be confusing if you're new to the interface. The location of the necessary settings directly depends on the hardware manufacturer and firmware version.

Below is a table with sample menu options for popular brands to help you navigate the menu more quickly:

Router brand Path to Wi-Fi settings Password field name
TP-Link Wireless -> Wireless Security Password (PSK)
Asus Advanced Settings -> Wireless Network -> General WPA Pre-Shared Key
Keenetic My Networks and Wi-Fi -> Home Network Password
D-Link Wi-Fi -> Security Settings PSK encryption key

Please note that modern routers often support this function. WPS (Wi-Fi Protected Setup). If you need to connect your phone or laptop but don't have a keyboard handy, you can simply press the WPS button on the router and the same button on the device you're connecting to. You don't need to enter a password.

However, from a security standpoint, using WPS is not recommended, as this protocol has vulnerabilities. It's best to first check the password in the settings and enter it manually.

⚠️ Important: If you change any settings in the web interface (for example, changing the SSID or encryption type), be sure to click "Save" or "Apply." The router may reboot, and the cable connection may be temporarily interrupted.

☑️ Check before logging into the router

Completed: 0 / 4

Using third-party recovery utilities

If standard Windows tools don't work, and you're afraid of messing up your router, you can use specialized software. There are password managers that can extract saved keys from the system registry.

One of these snails is WirelessKeyView from NirSoft. It requires no installation and works immediately after launch. The program scans the Windows profile database and displays all known passwords.

It's important to understand the limitation: this program will only display the password if the computer has previously connected to this Wi-Fi network over the air. If the PC is "dead" and only knows the network via cable, the utility will be useless, as the wired connection profile physically doesn't contain the Wi-Fi key.

Another option is to use mobile device emulators or router management programs such as Tether or proprietary utilities from manufacturers (for example, TP-Link Tether (For PCs, although they are more common on mobile devices.) They allow you to view network settings if the device is logged into the router's cloud account.

Third-party software security

Download utilities only from the developers' official websites. Antivirus programs may detect password recovery programs as hacking tools (HackTools), as they use similar methods to access system data.

What to do if your password has been changed or lost

There are situations when the password field in the router settings contains dashes, or you realize the key has been changed by another user and the current data is no longer valid. In this case, a final, but radical, method remains.

You can perform a factory reset (hard reset) on your router. There's a small hole on the device's body marked Reset or DefaultYou need to press it with a paper clip and hold it for about 10-15 seconds until the indicators blink.

After this procedure, the router will return to its out-of-the-box state. The Wi-Fi password will be the one indicated on the sticker on the bottom of the device. You will need to reconfigure your ISP connection type (PPPoE, L2TP, or dynamic IP) if it isn't set automatically.

This method guarantees access, but it requires time to reconfigure your entire home network. Make sure you have your contract with your provider handy so you know the necessary internet settings.

Frequently Asked Questions (FAQ)

Is it possible to find out the Wi-Fi password if I am connected via cable but don’t know the router’s IP?

Yes, it is possible. Open the command prompt (cmd) and enter the command ipconfigFind the line labeled "Default Gateway." The numerical address in this line (e.g., 192.168.1.1) is your router's address, which you should enter into your browser.

Why does the netsh wlan show profile command return an error?

This error occurs if your computer doesn't have a Wi-Fi adapter or the corresponding service is disabled. This command only works with wireless profiles. If your PC is connected only via cable and has never received Wi-Fi, this method won't work—use browser login.

Where can I find the password sticker if the router is located far away?

If you have difficulty physically accessing the sticker on the bottom of your router, and the password is hidden behind asterisks in the web interface, try using the command line method on a laptop that is already connected to the Wi-Fi network. There, you can see the password in plain text using key=clear.

Is it safe to store a password in a text file on your desktop?

No, this is poor security practice. Any virus or attacker that gains access to your PC will be able to read this file. It's better to use your browser's built-in password manager or a dedicated secure storage service.