Can't perform OTA update with ESP8266 in HA

Hi,

I’m trying to solve an issue i have with my ESP8266.

Here is my setup: proxmox on a laptop acting as a server, HAOS in a VM. I’ve installed ESPHome compiler addon, i manage to upload a firmware via a usb com port, but when i try wirelessly, it fails.

I get this error message:
INFO Successfully compiled program.
INFO Connecting to 192.168.2.4 port 8266…
ERROR Connecting to 192.168.2.4 port 8266 failed: timed out
ERROR Connection failed.

When i open a shell from the VM, i am able to ping the ESP, but no port shows open. Either 80 or 8266 ports show “filtered” when testing them via nmap. The webserver on the ESP is active, i can access it from my PC on the same LAN. And from my PC, the port 8266 is open…

I don’t know what’s going on. I tried to deactivate every firewall/MAC filtering/etc service in proxmox, it doesn’t change anything.

If somebody has a clue what’s going on, i’d appreciate it.

I don’t know why that is happening, but if you can access the web page, you can upload the firmware there.

Yes that’s what i did, but this issue is related to other issues i have with proxmox and esp. The main one being it’s the only device that can’t connect to a mqtt broker hosted on this server.

I changed my network interface from a usb ethernet device to the internal network interface, and now it’s working fine. NO IDEA why…