Hello,
I just bought a new Ethernet shield and I'm starting to play with it on top of an Arduino UNO. For some reason when trying to open connection to the board, the software just hangs. I'm running the example DhcpAddressPrinter but when it reaches the condicional line, it hangs.
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// no point in carrying on, so do nothing forevermore:
for (;
;
}
I also tried using static IP but it also does not work, it get assinged a weird IP 0.45.45.45
Ethernet.begin(mac, ip, gateway, subnet); //for manual setup
Does anyone has any idea why the board is not talking to the router correctly?
Thanks in advance