The best way is to ask someone for the password.
If you don't want others to know that you want to connect to his router.
You can only install your own wifi master key and try to connect to the wireless hotspot wifi network.
Wifi master keys can only be connected to hotspots where users share WiFi network data.
You cannot connect to an unshared wifi network.
Whether you can connect to the hotspot of wireless wifi network depends on the data of hotspot accounts shared by other users.