Control 3 relays at different locations via ethernet 1 arduino master and 3 slav

555/5000
Hello everyone,
I need help,
My arduino knowledge is still very limited

I intend to build a system to connect three lamps (via relay) in different places.
In these places I have computer network
Have an arduino master connected via ethernet (fixed ip) that sends orders depending on the state of one of its inputs (IN) simultaneously for different arduinos. These are also connected by ethernet (fixed ip) as slaves.
That is
Master
IN -ON - sends order to connect one out of slaves
IN - OFF - sends order to disconnect one out of slaves

What's the question?

start EthernetServer at port for example 2323 at slaves and let master connect to slaves. Everything you write into EthernetClient will be available on connected EthernetClient on the other side.