upload a sketch to yun via vpn

Hi, i have a small project at home, i tried to update my sketch via vpn bit the Arduino IDE says that it can't connect to the Yun, is there a way to force it? The VPN is ok, i can connect to it on the other side.

Fabrizio

mactsk:
Hi, i have a small project at home, i tried to update my sketch via vpn bit the Arduino IDE says that it can't connect to the Yun, is there a way to force it? The VPN is ok, i can connect to it on the other side.

Sorry, but what "VPN" are you talking about? :~

Ralf

Can you connect to the yun with SSH via your VPN?

Absolutely, when i activate the vpn i have also an ip address inside my remote office(home), i can do everything, like printing on remote printers, so i can connect to my yun in ssh but also sftp(i have installed it).

I tried also to "send all traffic trough vpn"
the only limit is that i have to use ip's and not "arduino.local"
probably the IDE uses some sort of auto discovery that usually does not work in VPN, it would be useful to be able to specify the ip of the YUN.

Yun uses zeroconf (aka Bonjour on macosx, and Avahi on linux) to broadcast its presence to the network. Maybe your VPN is ignoring that traffic. I think it's not a issue you can solve on your computer, rather on the vpn server.

Specifying an IP address is an old feature request but we haven't gathered enough use cases for starting implementing it.

In the meanwhile, here is a workaround.
Close the IDE, open your preferences file (mine is in HOME/.arduino15/preferences.txt), edit keys "serial.port" and "serial.port.file" and specify the IP of the yun, for example

serial.port=192.168.240.1
serial.port.file=192.168.240.1

Open the IDE and don't select the port. Upload your sketch.

Grazie Federico.

The next time i'll try your solution :slight_smile:

Fabrizio

Hello,

I am doing a project using yun. I am just curious on how were you able to set up the VPN (server?) on your yun. I couldn't find much documentation online on running a VPN service on arduino yun.
I do know from my readings that since 9931 is running openWRT, it comes with the VPN service. So, you can flash your router to install openWRT on it and probably go from there. Did you do anything like this for your VPN service? It would be really great if you could give some hint or point me somewhere. The router that i have isn't compatible with openWRT. I have linksys E1200. I would prefer to continue without buying a new router.

Thanks.

Sorry, my vpn server is my Draytek router, not the YUN.

Fabrizio

mactsk:
Sorry, my vpn server is my Draytek router, not the YUN.

That was the part that I initially didn't understand either, until I saw you previous reply, which made it clear that you were trying to access your Yun on a local LAN, that is being accessed via a VPN gateway...

Ralf

ciao ,
hi have the same problem .
I can reach via VPN the yun with ssh and web , but don't with IDE .
I've modified preference.txt as suggested , but didn't work : " board at 192.168.0.160 is not available"
did anyone solved this issue?
thanks
fab

mactsk:
Grazie Federico.

The next time i'll try your solution :slight_smile:

Fabrizio

Hi,

I had the same issue. Arduino box has been setup in a remote location and I was trying to access it from home using a VPN access.
VPN was ok, I was able to access the web interface and ssh the box but impossible to make "Arduino Software" able to upload sketches. The box was not displayed in the port list.

I installed Avahi on the remote router and made it listen and broadcast on all interface. This way, remotely my computer was able to discover it and after that "Arduino Software" found it.