It's a common situation to need to connect a laptop or desktop computer to a wireless network but don't know or forget the password. It often happens that a smartphone has been successfully connected to the router for a long time, and the owner doesn't even remember the login password. In this case, mobile device becomes the key to solving the problem, allowing you to avoid resetting the router to factory settings.
There are several proven ways to extract the secret combination or directly transfer authorization data to a PC. The methods vary depending on your device's operating system: Android or iOSModern mobile OS versions provide built-in tools for secure data exchange, which significantly simplify users' lives.
In some cases, you may need to access the router's administrative panel or use special utilities. It is important to understand that in order to transmit a password, the phone must already be connected to the network or have data about it stored in its memory. We will consider the most effective and safe action algorithms for various scenarios.
Using a QR code on Android devices
Starting with Android 10, the system now includes a native QR code generator for the current Wi-Fi network. This is the fastest way and doesn't require any third-party software. Simply go to your wireless settings and find the "Share" option or the gear icon next to the active network.
After pressing the button, the system will request identity verification using a PIN, pattern, or biometrics (fingerprint, face scanner). This is a security measure to prevent password theft by hackers when the screen is unlocked. After confirmation, a square code will appear on the screen containing an encrypted string with login information.
⚠️ Warning: Do not take screenshots of the QR code or send them via messenger. Anyone who scans this code with a camera will gain full access to your network without your knowledge.
To scan the code on your computer, you'll need a webcam and a dedicated app, or the built-in feature in Windows 11. If you're using Windows 10, you can use the built-in Camera app or any browser that supports QR scanning. The resulting string will be in the following format: WIFI:S:MyNetwork;T:WPA;P:MyPassword;;Symbols after P: and up to the double punctuation mark - this is your password.
Share Password on iPhone and Mac
Equipment owners Apple are in a better position thanks to the ecosystem. If your computer is running macOS and you are logged into the same Apple IDJust like on an iPhone, the process is automatic. You don't need to know the password or scan any codes.
Simply bring your iPhone close to the Mac you want to connect to Wi-Fi. A pop-up window will appear on your iPhone's screen asking you to share the passkey. After you click "Share Password," your computer will automatically connect to the network. This works thanks to AirDrop technology and a secure data connection.
- 📱 Make sure Bluetooth is enabled on both devices.
- 📶 Wi-Fi on your iPhone must be active.
- 📧 Email or phone number must be saved in each other's contacts.
- 🔒 Both devices must be unlocked.
If your computer isn't an Apple device but you have an iPhone, you can also use the QR code method, but it's only available on iOS 18 and later, or through third-party scanner apps. In older versions of iOS, directly viewing the saved password as text is only possible through iCloud Keychain on a Mac or in Settings on iOS 16+. Transferring it to Windows with a single click is impossible without a code.
View saved passwords in Android settings
On many smartphones with manufacturer-specific skins (e.g., Xiaomi, Samsung, Realme), the password viewer feature is implemented even more conveniently than simply generating a QR code. After opening the "Share" menu and passing biometric verification, a text string containing the password is often displayed below the QR code.
You can copy this string to the clipboard and send it to your messenger or notes, opening them on your computer. However, be careful: the clipboard in some applications can be accessed by other programs, creating a potential vulnerability.
On standard Android (Pixel, Motorola), the password text may be hidden. If this is the case, tap the "Copy" button below the QR code, if available, or use Google Lens to recognize text directly from the screen. Paste the recognized text into any editor to highlight the desired part of the line.
| Model / Brand | Button location | Is biometrics necessary? | The password text is visible |
|---|---|---|---|
| Samsung Galaxy | Click on the network → QR code | Yes (PIN/Finger) | Yes, under code |
| Xiaomi / Redmi | Click on the network → QR code | Yes | Yes, under code |
| Google Pixel | Settings → Network → Share | Yes | No (code only) |
| Huawei / Honor | Settings → Wi-Fi → QR | Yes | Partially |
☑️ Pre-delivery check
Using the Wi-Fi Key Recovery (Root) app
For users with rights Superuser (Root) There are specialized utilities on Android, such as WiFi Key RecoveryThese applications have direct access to the system file wpa_supplicant.conf, where all passwords ever entered are stored in clear text.
This method is considered advanced and requires preliminary device preparation. Without superuser privileges, the app won't be able to read system security files. If your phone isn't rooted, this method won't work, and attempts to root the device may void the warranty.
⚠️ Warning: Rooting your device will void your manufacturer's warranty and may leave your device vulnerable to viruses if you're not careful when installing software.
The process is as follows: install the app and grant it superuser privileges when prompted. You'll see all your saved networks in the list. Click the one you need, and the password will be copied to the clipboard or displayed on the screen. You can then manually enter it on your computer.
What is wpa_supplicant.conf?
This is a system file in Linux and Android that manages Wi-Fi connections. It stores network SSIDs and their corresponding passwords in hashed or cleartext format, depending on the Android version and encryption type.
Accessing router settings via a mobile browser
If software methods don't work, there's always the hardware option: logging into the router's control panel. Since your phone is connected to Wi-Fi, it's on the same local network as the router. Open a browser on your smartphone and enter the gateway address, usually 192.168.0.1 or 192.168.1.1.
You'll need your administrator login and password. If you haven't changed them, they're listed on a sticker on the bottom of the router (often admin/admin). Once in the interface, find the section Wireless or Wi-Fi SettingsThe current password will be indicated in the "Password" or "Pre-Shared Key" field.
Some modern routers (Keenetic, TP-Link with Tether support, ASUS) allow you to manage settings through the provider's or manufacturer's mobile app. The app often allows you to view the password or even copy it if the device has previously been added to your account.
⚠️ Please note: Router interfaces vary significantly from manufacturer to manufacturer. If you are unsure of what you're doing, it's best not to change any settings other than viewing the password to avoid disrupting your network.
Once you see the password in the input field, you can rewrite it or copy it (if the interface allows text selection). Some routers have a "Show Password" button (an eye), which changes the asterisks to symbols.
Common problems and solutions
When trying to share a password, users may encounter various technical obstacles. For example, a QR code might not be readable by a computer camera. In this case, try increasing the brightness of your phone's screen or, conversely, reducing the image size if the code is too large.
Another common issue is that the computer can't see the network, even though the phone shows a connection. Check the frequency: if the router only broadcasts 5 GHz and the PC's network card is old and only supports 2.4 GHz, there will be no connection. Also, make sure the Wi-Fi adapter driver isn't disabled on the PC.
- 🔄 Reboot your router if the network list is empty.
- 📡 Check if airplane mode is enabled on your phone.
- 🔑 Make sure you are trying to connect to the correct network name (SSID).
- 🛡️ Your PC's antivirus may be blocking connections to new devices.
If you're using a corporate network or a network with web-based authentication (Captive Portal), the QR code method may not work for automatic login, as it requires additional browser authentication. In such cases, it's better to use the router settings method.
Questions and Answers (FAQ)
Is it possible to transfer a password directly via Bluetooth without QR?
By standard means