From a Mac, a remote connection can be established. Other remote devices can establish a connection to a Mac. I found a link to instructions on how to gain remote access to other devices outside of the network. Here is the link.

Link:
https://setapp.com/how-to/how-to-access-your-mac-remotely