   DBG Serial.print("HWAddr: ");
   DBG Serial.println(macstr);
   // Try to configure the ethernet using DHCP
+  delay(2000);
   DBG Serial.println("Running DHCP...");
   if (Ethernet.begin(settings.mac) == 0) {
     DBG Serial.println("DHCP failed, using static IP.");
     // Use static IP
     Ethernet.begin(settings.mac, IP, MASK, GW);
   }
+  // Print IP
+  DBG Serial.print("IPAddr: ");
+  DBG Serial.println(Ethernet.localIP());
   // Give the Ethernet shield a second to initialize:
   delay(1000);
   // Start server

  strcat (buffer,itoa(digitalRead(RELAY_PIN),r,10));
  strcat (buffer,"}");
  strcat (buffer,"]}");
  // Print data also on the serial
  Serial.print("#");
  Serial.print(MAGIC);

  }
}

// this method makes a HTTP connection to the server
void sendData() {
  // check if the feed has been initialized
  if (settings.feed == 0) {
    return;
