did you already find the ports used by OTA? I found these ports in order to make a firewall rule but I am missing a port. With these ports I can see my devices over the (same) network but I do not see the respond the esp send to me when I try to upload the sketch.
The error I get when the firewall rule is active: 17:00:50 [ERROR]: No response from device
I used these site for these ports: http://www.speedguide.net/ports.php?filter=bonjour
Ports: 5297, 5298, 5353, 7648, 32400, 49159
When I switch of the (local) firewall the upload works fine.
I hope someone can help to find the missing port(s).