Are you running on Windows 10/11 or on Windows Server Edition?
Have you checked the status of your network connection? If you are in your home network, the classification in Windows must be “private”, not “public”.
Are you using any 3rd-party anti virus or VPN software?
Where are you in the world?
The general procedure you need is this here: You need to reclaim your server, but don't dare to touch the Windows Registry