Hello,
If you wish to access a computer within a local network that is part of an Active Directory (AD), there are two main areas to focus on:
- Networking:
To connect to your PC from outside its local network, you can either use port forwarding or set up a Virtual Private Network (VPN). For more information, see Allow access to your PC from outside your PC's network. Given your scenario, a VPN would likely be more suitable. Alternatively, if you prefer not to use a VPN, you could set up a Remote Desktop Gateway.
When you connect to your PC by using a Remote Desktop client, you're creating a peer-to-peer connection. This means you need direct access to the PC (sometimes called "the host").
Ensure that your firewall is configured to allow Remote Desktop Protocol (RDP) traffic. This involves opening port 3389 on the firewall.
- Permissions:
- The remote user needs to be a member of the Active Directory.
- The remote machine must be joined to the domain.
- The remote user should also be included in the Remote Desktop Users group on the host PC.
Below are the prerequisites for setting this up:
To connect to a remote PC, that computer must be turned on, it must have a network connection, Remote Desktop must be enabled, you must have network access to the remote computer (this could be through the Internet), and you must have permission to connect. For permission to connect, you must be on the list of users. Before you start a connection, it's a good idea to look up the name of the computer you're connecting to and to make sure Remote Desktop connections are allowed through its firewall.(see:Enable Remote Desktop on your PC | Microsoft Learn)
I hope this information helps!
Best regards,
Karlie