ESP32 + lan8720 Ethernet módule only works when connected in computer

hi everyone,

I have a project that uses an ESP32 an PHY Ethernet module, and my code read the state of 8 inputs of ESP32 an send me an email everytime the states of inputs change from low to high. The project is working when ESP32 is conected in my computer but when i try to use it with an external DC source it doesn’t work, could you help me with this problem ?

Try using espHome.
Whatever ESP firmware you are using may be communicating exclusively over the USB cable.