OTA wont work with platformIO/Atom but works with ArduinoIDE (No response from the ESP)

I have the same message error

19:45:19 [DEBUG]: Options: {‘esp_ip’: ‘192.168.2.59’, ‘host_ip’: ‘0.0.0.0’, ‘esp_port’: 3232, ‘host_port’: 59186, ‘auth’: ‘’, ‘image’: ‘.pio\build\Gateway_59\firmware.bin’, ‘spiffs’: False, ‘debug’: True, ‘progress’: True, ‘timeout’: 10}
19:45:19 [INFO]: Starting on 0.0.0.0:59186
19:45:19 [INFO]: Upload size: 1029536
Sending invitation to 192.168.2.59 …
19:46:59 [ERROR]: No response from the ESP
*** [upload] Error 1

But I can’t ping the IP address 192.168.2.59

Do you know how I can fix it?

Thanks