Not sure if anyone is interested but i wanted my DomoticHome / arduino to be flexible with te IP range so i could use the home made 315MHZ adapters anywhere ... so i updated it to work with DHCP... example below

More info of what i am doing can be found on my blog if anyone is interested
http://www.humpadilly.com/?p=206/*
Domotic RF 315MHZ Controller
created 06/05/2012
by Humpadilly
http://www.humpadilly.com/?p=206
*/
#include <SPI.h>
#include <Ethernet.h>
#include <RemoteSwitch.h>
//Intantiate a new ActionSwitch remote, use pin 7
ActionSwitch actionSwitch(7);
// 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 };
EthernetClient client;
//Setup Server to listen on Port 80
EthernetServer server(80);
// HTTP Read String
String readString = String(30);
void setup(){
Serial.begin(9600);
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// no point in carrying on, so do nothing forevermore:
for(;;)
;
}
else {
server.begin();
}
}
void loop(){
listenForEthernetClients();
}
void listenForEthernetClients() {
// listen for incoming clients
EthernetClient client = server.available();
if (client) {
while (client.connected()) {
if (client.available()) {
char c = client.read();
if (readString.length() < 30)
{
readString = readString + c;
}
if (c == '\n') {
Serial.print(readString);
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
if(readString.startsWith("GET /?out=LRL&status=1"))
{Serial.print("\n LRL HIGH \n");
actionSwitch.sendSignal(1,'LR',true);
client.print("{\"status\" : \"1\" , \"out\" : \"");
client.print("LRL");
client.print("\"}");
}
if(readString.startsWith("GET /?out=LRL&status=0"))
{Serial.print("\n LRL LOW \n");
actionSwitch.sendSignal(1,'LR',true);
client.print("{\"status\" : \"0\" , \"out\" : \"");
client.print("LRL");
client.print("\"}");
}
if(readString.startsWith("GET /?out=TVLight&status=1"))
{Serial.print("\n LRL HIGH \n");
actionSwitch.sendSignal(0,'TVLight',true);
client.print("{\"status\" : \"1\" , \"out\" : \"");
client.print("TVLight");
client.print("\"}");
}
if(readString.startsWith("GET /?out=TVLight&status=0"))
{Serial.print("\n LRL LOW \n");
actionSwitch.sendSignal(0,'TVLight',true);
client.print("{\"status\" : \"0\" , \"out\" : \"");
client.print("TVLight");
client.print("\"}");
}
if(readString.startsWith("GET /?out=L2L&status=1"))
{Serial.print("\n LRL HIGH \n");
actionSwitch.sendSignal(2,'L2L',true);
client.print("{\"status\" : \"1\" , \"out\" : \"");
client.print("L2L");
client.print("\"}");
}
if(readString.startsWith("GET /?out=L2L&status=0"))
{Serial.print("\n LRL LOW \n");
actionSwitch.sendSignal(2,'L2L',true);
client.print("{\"status\" : \"0\" , \"out\" : \"");
client.print("L2L");
client.print("\"}");
}
if(readString.startsWith("GET /?out=all"))
{
Serial.print("\n OUT ALL\n");
client.print("{\"ip\" : \"");
client.print(Ethernet.localIP());
client.print("\",");
client.print("\"devices\" : ");
client.print("[{ \"type\" : \"light\", \"name\" : \"Living Room\", \"out\" : \"");
client.print("LRL");
client.print("\"}");
client.print(",{ \"type\" : \"light\", \"name\" : \"TV Light\", \"out\" : \"");
client.print("TVLight");
client.print("\"}");
client.print(",{ \"type\" : \"light\", \"name\" : \"Light\", \"out\" : \"");
client.print("L2L");
client.print("\"}");
client.print("]}");
}
readString="";
client.stop();
}
}
}
}
}