Arduino on ESP8266 with PlatformIO - OTA not working remotely

I have been using VSCode + PlatformIO for my most recent project and now I have traveled from home and found that OTA from within PlatformIO does not work...
When I am at home I can upload new firmware directly from VSCode via PlatformIO and start debugging.
But when I am remote and connected by OpenVPN to my home network where the device is running it is not possible to update. It fails in the step of connecting to the device.

21:19:17 [INFO]: Sending invitation to: 192.168.119.200
Authenticating...OK
21:19:17 [INFO]: Waiting for device...
21:19:27 [ERROR]: No response from device

The terminal process "C:\Users\Bosse\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload', '--environment', 'esp07s_OTA'" terminated with exit code: 1.

But I have also loaded ArduinoOTA on this device and this works fine to send the new firmware to the device also via VPN! So I can do the update manually.

Question:
Have I overlooked something in my setup or is this normal?

You should ask on a PlatformIO forum. This forum is for the Arduino IDE.

Usually mDNS has to work for OTA which is only the case in the same broadcast domain. If you use OpenVPN in routing mode, not in bridging mode, you cannot see mDNS services of your home network.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.