Laptop says "Unidentified Network: No Internet Access" when I am connected to a network
So this problem started about a month ago. When I turn on the laptop, there is an icon saying that my laptop has no internet access. I went to check the internet connection and the wifi on my laptop says "Identifying: No Internet Access". After a while it changed to "Unidentified Network: No Internet Access". So I tried to run the Network Adapter Troubleshooter(with Run As Admin) on the Network and Sharing Center. It said that it reset the wireless adapter but the problem was still there after the resetting. When the troubleshoot completed, the results were "Problem with wireless adapter or access point(Not Fixed)" and "Wifi" doesn't have a valid IP configuration(Not Fixed). I tried running the troubleshooter a lot of times but no luck. I even tried to disconnect and reconnect to my wifi but it didn't work either. I also tried to switch off the main internet modem and turned it on again but this time the laptop said that it has Internet Access. So I used the laptop for a while but then after a few minutes, the laptop went back to having the Unidentified Network problem again. I tried restarting the laptop several times and it didn't work. So I saw on a forum to try to run the Command Prompt(Admin) and enter the "ipconfig/release" and "ipconfig/renew" and the "netsh int ip reset" thing. At first it worked and the problem was gone so I used the laptop for a few minutes but when I put the laptop to sleep and turned the laptop on again, the problem came back. I did the ipconfig commands mentioned above again and the problem was gone but after trying to disconnect from my wifi and connecting back to it, the problem came back. I really don't know what caused this problem. It really is strange because the other devices that are connected to the network have internet access, but not on this laptop I am using. Please tell me how to fix this and tell me if the main cause of the problem is the laptop or the modem itself. I really wish this problem has a permanent fix as this problem prevents me from using this laptop normally. A quick reply is much appreciated!!!!!