My home network (Unifi) has all the arduino devices on a seperate VLAN.
To perform OTA update the following needs to happen:
local network -> arduino network, dst 8266/udp arduino network -> local network, dst $yourpick/tcp
Within Arduino IDE, is there a way to specify the TCP port, so I can set a firewall wall to allow just that?
ArduinoOTA.setPort(8266); can specify the UDP port within the sketch, but nowhere I can find for the seemingly random TCP port needed for the other direction.
Source article which sums up pretty much what I want to do, except I wonder the TCP port can be set with Arduino IDE: Arduino OTA uploads across networks & through firewalls – tech.fawk.eu