[SOLVED] Ethernet Module ENC28J60 not working!

Hi guys!

I recently bought an ENC28J60 ethernet module from [price-up] SPI to Ethernet Module ENC28J60 – ElectroDragon. The libraries provided in this website didn't work for me so I'm using ETHER_28J60 and etherShield together. Here is the link to the libraries:
https://github.com/Waelson/ETHER_28J60

I tried to run a simple hello world code (from the examples) but it didn't work. Here is the code I tried to run:

// A simple web server that always just says "Hello World"

#include "etherShield.h"
#include "ETHER_28J60.h"

static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24};   // this just needs to be unique for your network, 
                                                                // so unless you have more than one of these boards
                                                                // connected, you should be fine with this value.
                                                           
static uint8_t ip[4] = {192, 168, 0, 105};                       // the IP address for your board. Check your home hub
                                                                // to find an IP address not in use and pick that
                                                                // this or 10.0.0.15 are likely formats for an address
                                                                // that will work.

static uint16_t port = 80;                                      // Use port 80 - the standard for HTTP

ETHER_28J60 ethernet;

void setup()
{ 
  ethernet.setup(mac, ip, port);
}

void loop()
{
  if (ethernet.serviceRequest())
  {
    ethernet.print("<H1>Hello World</H1>");
    ethernet.respond();
  }
  delay(100);
}

The code compiles but when I look up the ip address on my browser it says it can't find the webpage. I tried pinging the ip from my computer and I have attached the screenshot. I tried giving the device a static ip address based on the mac address but still didn't work.

I have zero background in networking. I live in a dorm. I have my own router in my room. I have the arduino plugged into my router. But I remember every time I wanted to use a new laptop in our dorm I had to first agree some terms on our dorm's network. I thought maybe the dorm network is blocking arduino from accessing to the network (maybe that's a stupid question, I don't know how this whole networking works).

I don't have a protected network (password). I do mac address filtering, and yes I did add the mac address of the arduino to the allowed devices. Arduino version is 1.0.5. and I'm using mac os x. One LED on the ethernet jack is always green and the other one rarely blinks and it's yellow.

I really need to get this working, any suggestion/help is highly appreciated. If you need extra info please just let me know.
Thanks a lot!

Screen Shot 2014-08-31 at 11.17.23 PM.png

Ok I got it working. Just in case someone faces the same problem:

The problem was with the library and/or giving the device a static IP. I used another library "UIPEthernet" and also I removed the static IP from the router setting and it started working fine.

hi,
I'm trying to show the analog inputs by web as example code for existing WIZNET, but I have not got, have some sample code you can provide me? I'm using the library UIPEthernet.h, I think it's the same as you are using. the only thing I get is erroneous data increase on the bowser as yo can see in the attached image.
this is my code:

#include <SPI.h>
#include <UIPEthernet.h>

EthernetServer server = EthernetServer(80);

void setup()
{
  Serial.begin(9600);

  uint8_t mac[6] = {0x00,0x01,0x02,0x03,0x04,0x05};
  IPAddress myIP(192,168,1,177);

  Ethernet.begin(mac,myIP);

  server.begin();
}

void loop()
{

  if (EthernetClient client = server.available())
    {
      boolean current_line_is_blank = true;
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        // if we've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so we can send a reply
        if (c == '\n' && current_line_is_blank) {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
         
        
          // output the value of each analog input pin
          for (int i = 0; i < 6; i++) {
            client.print("analog input ");
            client.print(i);
            client.print(" is ");
            client.print(analogRead(i));
            client.println("
");
          }
          break;
        }
        if (c == '\n') {
          // we're starting a new line
          current_line_is_blank = true;
        } else if (c != '\r') {
          // we've gotten a character on the current line
          current_line_is_blank = false;
        }
      }
    }
    // give the web browser time to receive the data
    delay(100);
    client.stop();
    }
}

I hope you can help me.
greetings