if (Ethernet.begin(mac) == 0) { Serial.println("Failed to configure Ethernet using DHCP"); // no point in carrying on, so do nothing forevermore: for(;;) ; } // give the Ethernet shield a second to initialize: delay(1000); Serial.println("connecting...");

// if you get a connection, report back via serial: if (client.connect(server, 1080)) { Serial.println("connected"); // Make a HTTP request: client.println(); } else { // kf you didn't get a connection to the server: Serial.println("connection failed"); }}

// if you get a connection, report back via serial: if (client.connect(server, 1080)) { Serial.println("connected"); // Make a HTTP request: client.println(); } else { // kf you didn't get a connection to the server: Serial.println("connection failed"); }