Because Windows Firewall restricts communication between your PC and the Internet, you might need to change settings so that Remote Desktop Connection can work.
Open Windows Firewall by swiping in from the right edge of the screen, tapping Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Search), entering firewall in the search box, and then tapping or clicking Windows Firewall.
Tap or click Allow an app or feature through Windows Firewall.
Click Change settings.
You might be asked for an admin password or to confirm your choice.
Under Allowed apps and features, select the check box next to Remote Desktop, and then use the check boxes in the columns to select the network types you want to allow communication on.
Tap or click OK.
If the Change settings button is unavailable, you might not have permissions to change some settings that are managed by your system administrator.
See all support pages for security, privacy, & accounts.
Ask a question in the