Question about Using Apple Remote Desktop over the Internet

Hello everyone,


I have used ARD for few months with local network.

Recently my parents (live in different city) decided to get an iMac. And they would like me to help them sometimes with the software and all.

So I setup a VPN connection between their house and mine, using OpenVPN and TunnelBlick for Mac OSX


Here is how I plan to make it works:


1/ My parents would initiate the VPN connection from the iMac, to my home's networks. Using TunnelBlick, they can do that with just 1 click and it works OK

2/ From my laptop (Macbook Pro), running ARC 3.8.5, I try to search for "local network" but the ARD could not pick up my parent's iMac.


I thought if my parent's iMac connects to my home's network via VPN, their iMac will be treated as "local network" computer just as my Macbook Pro and they should see each other?


Could you please let me know where I should check and what I should be looking for to make it work?


Thank you very much

James

iMac, OS X El Capitan (10.11.4)

Posted on Apr 15, 2016 10:22 PM

Reply
8 replies

Apr 15, 2016 11:15 PM in response to James NB

I thought if my parent's iMac connects to my home's network via VPN, their iMac will be treated as "local network" computer just as my Macbook Pro and they should see each other?


Yes... and no.


Yes, the are virtually on the local LAN and the can access resources on your home network. However, by default and not without a lot of work, the auto-discovery protocols (e.g. bonjour/zeroconf) do not reach out over the VPN link. This is, in part, because they use broadcast traffic, and the VPN doesn't pass broadcast traffic since it could overwhelm the WAN link.


Instead, you need to know the home LAN IP address assigned to their VPN connection (you can get this from the VPN server log), and then tell your ARD to connect to that IP address. Then you'll be all set.

Apr 15, 2016 11:28 PM in response to Camelot

Hi Camelot,

Thank you for taking time to answer me

I would also guess that I need to find out the assigned VPN IP. So I got it from the server log, for my case it is 10.0.8.4

But my macbook pro IP is 192.168.1.110 on my local network, for your info.


Using ARD, I select "Network Address" and type in "10.0.8.4" but I got the spinning wheel endlessly... Obviously, the ARD could not communicate with the iMac even though the iMac is already connected via VPN (I know because the iMac gets the same IP address as my home's network when I test it using www.whatismyip.com)


Any ideas about bug or something?


Regards

James

Apr 15, 2016 11:56 PM in response to James NB

If your MacBook Pro has an IP in the 192.168.1.x subnet, then I would expect your parent's system to have an IP address in the same subnet when they're connected via VPN.


If they're getting a different network address (10.0.8.x) then it implies they're connecting to a separate LAN at your home - as if you have one LAN for your home systems, and a separate LAN for VPN-connected hosts. Bizarre, but not impossible.


I don't know your VPN configuration to know if that's the case or not, but I'd look more closely there to see if you can identify where that 10.0.8.x address is coming from (are you sure that's their VPN-assigned address and not the actually host address in the remote network?

Apr 15, 2016 11:56 PM in response to Camelot

Hi Camelot,

I have just done a quick test:

If I also connect to my own VPN (using loopback or hairpin NAT), I would be assigned 10.0.8.10 and from there, I can just type my parent's assigned VPN IP as 10.0.8.4 and voila, I can get the ARD working. But it is kind of slow because the fact that, my parent's iMac and my Macbook Pro are on the "virtual" software (OpenVPN) connection.

So:

What I am trying to achieve eventually is that, my Macbook Pro does not need to connect to my own VPN. In such a case, I would get my local IP address a 192.168.x.x while my parents' iMac, for certain, would be connected using VPN and would get 10.0.8.x. How would these two networks being recognized by each other is absolutely beyond my knowledge.

Alternatively:

I can have my home's network and my parent's home connected using a site-to-site VPN devices and config. Or, I could have my parent's home Router to update the Dynamic DNS (Dyndns.org) so that they can have a hostname which I can use from my macbook pro to point to their iMac's address. Do you think it would help?


Do you know what I mean?


Thanks, again, for your time and your helps. I truly appreciate that.

James

Apr 16, 2016 12:09 AM in response to James NB

Hi Camelot,


I have just done a quick test:

If I also connect to my own VPN (using loopback or hairpin NAT), I would be assigned 10.0.8.10 and from there, I can just type my parent's assigned VPN IP as 10.0.8.4 and voila, I can get the ARD working. But it is kind of slow because the fact that, my parent's iMac and my Macbook Pro are now on the "virtual" software-based (OpenVPN) network.


The VPN address of 10.0.8.x is the setup that I made to distinguish the VPN's clients and not to overlap with my own local IP's devices. For example, if you are connected to the coffee shop's free WIFI which has 192.168.1.xxx (very common), then having the VPN's IP of 10.0.8.x ensures that you will not be overlapped with the own local network when you are trying to access your, for example, NAS which has IP address 192.168.1.105.


So:

What I am trying to achieve eventually is that, my Macbook Pro does not need to connect to my own VPN. In such a case, I would get my local IP address a 192.168.x.x while my parents' iMac, for certain, would be connected using VPN and would get 10.0.8.x. How would these two networks being recognized by each other is absolutely beyond my knowledge.

Alternatively:

I can have my home's network and my parent's home connected using a site-to-site VPN devices and config. Or, I could have my parent's home Router to update the Dynamic DNS (Dyndns.org) so that they can have a hostname which I can use from my macbook pro to point to their iMac's address. Do you think it would help?


Do you know what I mean?


Thanks, again, for your time and your helps. I truly appreciate that.

James

Apr 16, 2016 12:37 PM in response to James NB

If I also connect to my own VPN (using loopback or hairpin NAT), I would be assigned 10.0.8.10 and from there, I can just type my parent's assigned VPN IP as 10.0.8.4 and voila, I can get the ARD working.


That indicates that the VPN is, indeed, handing out its own block of IP addresses separate from those of your LAN. I don't know the specifics of the VPN server you're using to know if that's normal/expected, but my gut reaction tells me it's not - the main point of the VPN is to connect remote clients with systems in the LAN, and if it creates a private LAN for VPN clients that defeats much of the purpose.

So I'd look more deeply at the VPN server config. Maybe that's the default block of IP addresses and it's supposed to be changed to match your LAN during the setup?


What I am trying to achieve eventually is that, my Macbook Pro does not need to connect to my own VPN. In such a case, I would get my local IP address a 192.168.x.x while my parents' iMac, for certain, would be connected using VPN and would get 10.0.8.x.


A better solution would be to get your parents' system an address in your 192.168.0.x network.


You may also be able to overcome this via routing on your host. Since its address is 192.168.0.x, any traffic for any other address is sent to the default router (which, presumably, is not your VPN server). You could tell your MacBook Pro to send traffic for 10.0.8.x to the IP address of the VPN server instead:


sudo route add -net 10.0.8 <IP of VPN server>

This command (executed on your MacBook Pro) would be transient and need to be re-entered after a reboot, but it may be worth trying to see if it works, and then you can look to automate it.


I can have my home's network and my parent's home connected using a site-to-site VPN devices and config


That would also solve the issue, and save them from having to initiate the VPN connection manually. However, having a fallback plan is advised, just for those occasions where the site-to-site doesn't work for whatever reason.


Or, I could have my parent's home Router to update the Dynamic DNS (Dyndns.org) so that they can have a hostname which I can use from my macbook pro to point to their iMac's address. Do you think it would help?


dyndns would only ever map to their public IP address and is not what you want here. Technically you could do it if you didn't mind punching holes in their NAT router to let public traffic in on the ARD ports(!), and if you didn't care about securing the connection between them and you. I highly recommend against this option.

Apr 16, 2016 8:17 AM in response to James NB

I'd probably get a firewall with a VPN server embedded and dynamic DNS (DDNS) support, and then connect to the target firewall via VPN and screen share from there. A firewall with a VPN server will usually have a DHCP server with decent capabilities and can be configured for IP addresses assigned by MAC address, so you can establish consistent IP addresses on the target network. Bridging the networks can work with the right VPN devices and configuration, but — if you're all in the same IP subnet — now you have to coordinate IP address assignments across LANs, or migrate one or both to different subnets. I'd also use a different subnet from what's in use locally, and I'd stay out of 192.168.0.0/24 and 192.168.1.0/24 when VPNs are in use, as those are very commonly used, and VPNs are based on IP routing and IP routing doesn't work all that well with the same subnet on both ends of the VPN link.

May 13, 2016 8:30 AM in response to James NB

I don't know how much you know about VPN and connecting to a remote network.

Normally when I get this problem it is because both networks are using the same IP range, for example 192.168.1.x which seems to be a default range used on many if not most home routers.

===


If this is indeed the case and you enter for example 192.168.1.1 to 192.168.1.254 into the two network fields in the scanner then the network packets sent from your machine will never cross the connection to your parents house and hence will never find any equipment connected to their network.


I do not know the software you are using but unless the software solves this problem for you you will not be able to see the contents of the external network even after connecting with VPN.


Hans

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Question about Using Apple Remote Desktop over the Internet

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.