I have lost wifi connection. I know the network but not the password. therefore I can't use wifi
Which router do you have? You should be able to log into it via the computer and see what the password is.