4 * A simple server that distributes any incoming messages to all
5 * connected clients. To use telnet to 10.0.0.177 and type!
10 // network configuration. gateway and subnet are optional.
11 byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
12 byte ip[] = { 10, 0, 0, 177 };
13 byte gateway[] = { 10, 0, 0, 1 };
14 byte subnet[] = { 255, 255, 0, 0 };
16 // telnet defaults to port 23
21 // initialize the ethernet device
22 Ethernet.begin(mac, ip, gateway, subnet);
24 // start listening for clients
30 Client client = server.available();
32 server.write(client.read());