I have two Arduino UNOs, each with its own Ethernet Shield 2 installed. I am looking to connect both directly together with an Ethernet cable to control an LED. The first Arduino will have a pushbutton connected to it. When the button is pressed, an LED connected to the second Arduino will light up. Again, the only physical connection between the two Arduino boards is an Ethernet cable.
My guess is some form of communication system between the two boards, like board one sends a string/hex value to board two once the button is pressed. Board two recognizes the string/hex value it received and turns the LED on. Are there any simple examples of this that can be fairly easily modified?