How to find IP addresses of Ethernet devices?

In this opportunity we will address a problem that has happened to us when we need to obtain the IP address of an Ethernet device, it can be a PC, Smartphone, PLC in our case it can be an Arduino with shield ethernet, ESP8266 or ESP32. If we do not have the possibility to see or know…