Hello,
Probably, if you are trying to visit the website by IP address, it does not have an SSL certificate, and if you are trying to visit the website with a secure connection (HTTPS), it will show this error. Instead, use HTTP (or setup domain & SSL certificate)
Are the services running? Make sure the W3SVC (World Wide Web Publishing Service) service is running in services.msc. Also, check that your site and application pool are in the "Started" state in IIS Manager.
If the problem isn't with IIS, you can reset your network settings, which often helps with connection errors.
Run the following commands one by one:
batch
netsh winsock reset
netsh int ip reset
ipconfig /flushdns
Sometimes the problem can be caused by the cache or browser extensions.
Try opening your server in incognito mode.
If everything works there, clear your browser's cache and cookies for the entire time.
Also, try checking Windows Updates (after searching the internet, I noticed that this helps someone)