If the remote computer is reachable via the internet or has a public IP address, you may use RDP to connect to it even if it is not on the same network as your own. Nevertheless, because of security issues including the chance of illegal access and data interception, this form of connection is often not advised. To reduce these dangers, it's critical to have robust authentication and encryption procedures in place, as well as to only allow authorized individuals access.