While most projects we see with the ESP32 make use of its considerable wireless capabilities, the chip can be connected to the wired network easily enough should you have the desire to do so.
The Waveshare ESP32-P4-Nano is a tiny ... s board measures just 50 x 50mm (about 2″ x 2″) but it has a 10/100 Ethernet port, USB Type-C and Type-A ports, and support for WiFi 6 and Bluetooth ...