Basic OTA ESP32 can't connect to network port

I'm trying to use the example program Basic OTA for the ESP32 but I can't get it to work.

I uploaded my first program over a wired connection with the necessary OTA code into my ESP32.
The ESP does connect to Wifi okay.
The ESP does show up in the Arduino network ports list with the correct IP address.
But when I try to send the updated program I get an error.
A fatal error occurred: Could not open 192.168.1.20, the port doesn't exist
Failed uploading: uploading error: exit status 2

Obviously the port does exist or it wouldn't know the IP address.
Arduino IDE 2.2.1
Windows 11

Any ideas what I could try to get this to work.

It's still not working for me. I know the ESP is reachable via the network port.

I can ping the ESP.

If I send the command esptool flash_id I get the following response.
esptool.py v4.5.1
Found 1 serial ports
Serial port COM6
Connecting......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting.........
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
Uploading stub...
Running stub...
Stub running...
Manufacturer: 5e
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...

But I still can't program it via the Arduino IDE.

I did read ide2x has issues with ota/network ports that are not yet resolved. use 1.8 etc

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