Ethernet communication

There are a few things wrong with your sketches.

The client must send a request.
The server responds to the client request using client.print() or client.write().
The server closes the connection with client.stop() when finished sending packets.
The client then closes its end of the connection with client.stop().

I see none of this happening in your sketches. You might want to search the forum for client and server code by zoomkat. His code is pretty good. Get the communication working first. Then add the controls.