Warning: include(..\..\head.php): failed to open stream: No such file or directory in /customers/5/1/4/skramloteket.dk/httpd.www/elektronik/webserver/ip.php on line 1 Warning: include(): Failed opening '..\..\head.php' for inclusion (include_path='.:/usr/share/php') in /customers/5/1/4/skramloteket.dk/httpd.www/elektronik/webserver/ip.php on line 1

IP setup

Here follows a description of how to set up the IP address so that the server will work on a local network. In the top of the arduino link


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

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192,168,1, 177 };


The IP address needs to be changed to an address on your local network. This means that the first 3 numbers must be the same as your computers IP. To view your IP address under windows open the command prompt and type ipconfig. This will give you something like



The number 192.168.0.12 is my current IP address. So for the server I have to choose an address that starts with 192.168.0. This could be 192.168.0.177. By doing this I can plug the server directly into my rooter and access it threw the wireless network.
In this configureation the server will only be accessable from inside your network. In other words you can not acces it from the outside web. To be able to do this you will have to set up your router to forward the IP adress of the server

Resulting code in the sketch
#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192,168,0, 177 }; //My servers new IP




Warning: include(..\..nd.php): failed to open stream: No such file or directory in /customers/5/1/4/skramloteket.dk/httpd.www/elektronik/webserver/ip.php on line 40 Warning: include(): Failed opening '..\..nd.php' for inclusion (include_path='.:/usr/share/php') in /customers/5/1/4/skramloteket.dk/httpd.www/elektronik/webserver/ip.php on line 40