OTA not working since router change

I have recently changed my router but can no longer upload via Arduino OTA.
My script hasn’t changed and I can access my EPS32 web interface via the new router, but when I try to upload new code I get a message “[ERROR]: No response from device”

The ESP should not only be accessible from the PC but also the other way around.
During OTA, the PC sends an “invitation” to the ESP using UDP.
Then, the ESP sets up a TCP connection to the PC and performs the download.

Make sure to check your firewall settings in your new router.