You need to set the network connection in Windows to “Private”. It must not be “Public”.
And even that is no guarantee. If your ISP has put you behind a CG-NAT, you can do what you want, you won’t be able to access your server from the outside.
Start here: The Basics of Remote Access Troubleshooting