Help with ethernet shield


I am very new to this arduino stuff and not so familiar with codes and difficult words. Now I have got myself an ethernet shield, but I have not managed to get it up and go yet. I have tried the examples in the IDE, also another sample from The main problem is that when I enter desired IP-address ( in for instance google chrome, nothing happens. I cannot display anything.

The shield I am using is one I bought from Aliexpress, a HanRun. I have seen tutorials, so then I suspect that the router/network in my house might be the problem? When I enter the network administration page at my ip-address, I see that it's not receiving anything from the arduino, but only sending bytes. Might there be some problems here? Do I have to change the ACL Rules?

Any help, please?

This is showing the red/yellow light at Ethernet 1.

The instruction on is this:

This is the code I was trying:



That code is based on an old example.

  Ethernet.begin(mac, ip, gateway, subnet);

should now be:

  Ethernet.begin(mac, ip, gateway, gateway, subnet);

The first 'gateway' is the Domain Name Server address. Without it, the Ethernet library will try to use the subnet mask as the Gateway address and won't connect to your router. See: Ethernet - Arduino Reference

Unfortunately enough... I am sorry to say it, but it did not work at all. Any other tips? I might expect my router to be the main cause/problem...?

Are you sure your localnet is What ip is assigned to the computer that you are trying this stuff rom?

Are you sure your router's address is or did you just use that because it was in the example?

Try the example File->Examples->Ethernet->DhcpAddressPrinter to see if your router will assign an address. If so, you only need Ethernet.begin(mac);

Basic client test code to see if your hardware is functioning.

//zoomkat 9-22-12
//simple client test
//for use with IDE 1.0.1
//with DNS, DHCP, and Host
//open serial monitor and send an e to test
//for use with W5100 based ethernet shields
//remove SD card if inserted

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address

char serverName[] = ""; // zoomkat's test web page server
EthernetClient client;


void setup(){

  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // no point in carrying on, so do nothing forevermore:

  Serial.println("Better client test 9/22/12"); // so I can keep track of what is loaded
  Serial.println("Send an e in serial monitor to test"); // what to do to test

void loop(){
  // check for serial input
  if (Serial.available() > 0) //if something in serial buffer
    byte inChar; // sets inChar as a byte
    inChar =; //gets byte from buffer
    if(inChar == 'e') // checks to see byte is an e
      sendGET(); // call sendGET function below when byte is an e


void sendGET() //client function to send/receive GET request data.
  if (client.connect(serverName, 80)) {  //starts client connection, checks for connection
    client.println("GET /~shb/arduino.txt HTTP/1.0"); //download text
    client.println(); //end of get request
  else {
    Serial.println("connection failed"); //error message if no client connect

  while(client.connected() && !client.available()) delay(1); //waits for data
  while (client.connected() || client.available()) { //connected or data available
    char c =; //gets byte from ethernet buffer
    Serial.print(c); //prints byte to serial monitor 

  client.stop(); //stop client