Here’s how to find out the WiFi password thanks to a few steps to do with your device
You have forgot your WiFi password? No problem. In fact, there are some useful tricks that will allow you to recover the credentials of your router; the essential thing, however, is that the device (smartphone, tablet or computer) is associated with the network of interest.

If you are using a iPhone and the Apple device is already connected to the network, you can find out the forgotten WiFi password using the IP address stored on the “iPhone by”. Enter the Settings of the smartphone, touch the WiFi menu and press the “i” icon next to the name of the WiFi network to which you are connected.
On the next screen, select theIP address next to the entry Router and copy it to the clipboard. Now paste the IP address previously stored in the Safari address bar, entering your username and password (unless you have changed them, these credentials are shown behind the router).
After logging in, enter the WiFi section to find out the associated password.
For those who have saved the WiFi password on the iPhone, you can instead take advantage of the iCloud keychain to retrieve the credential. Enter the iPhone Settings and select the Password item, entering the Touch ID or Face ID to confirm your identity. On the next screen you will find a list of all passwords saved on iCloud: in fact, when a password is saved on iPhone or another Apple device, it is automatically stored on iCloud.
At this point, look for the name of your WiFi network to view the associated password.
How to recover the WiFi password on Windows

For those who have a device instead Windowsjust enter the command prompt (for the less experienced, you have to press the right mouse button on the Start button, or type CMD in the search bar) and launch this command (just paste the string shown in the window and press the enter key ): netsh wlan show profile name = NETWORK_NAME key = clear
The screen will show the credential that we have forgotten.
Finally, let’s see how to recover the WiFi password from Android. In this case, special applications must be installed on the device, which must be unlocked with root permissions. A specific app is for example WiFi Key Recover: just download it from the Play Store and start it on your smartphone to automatically show the names and passwords of all the networks stored on the device.