I am trying to run DHCPAddressPrinter.ino program on arduino uno+ ethernet shield but its getting hanged and not showing any IP address. I am using TP-Link router as well as I tried the same in DHCP server software installed in my syste also.
well the store dealer said its working fine with his Binatone router with OOTB setup. Now I am not sure whats the problem.
I ahve tested this with USB plugin as well as separate Dc supply (12 V, 1 AMP) but its not working
If you have a SD card in the shield’s slot, remove it. That will cause the dhcp request to fail. You can use then together, but the two devices must be started in a specific order to work.
Otherwise compile and run this code. It tests the SPI connection between the Arduino and the shield. If the serial monitor shows 192.168.2.2, then the SPI bus is ok. If it shows anything else, like 0.0.0.0, then you have a problem there. Insure the shield pins are inserted fully into the Arduino.