Go Down

Topic: Multiple Services running on Ethernet Shield module at same time (Read 993 times) previous topic - next topic

zoomkat


why this code doesn't work?
When compiling, it makes a lot of errors! Does it work on Aduino 0022?


Code: [Select]
//for use with IDE 1.0

You have a possible reading issue.
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)


fafidio

@zoomkat
Hi, I'm trying to use two arduino with ethernet shield one as server, and the second server-client: how could I change your ip code to work on my lan?
Code: [Select]

byte ip[] = { 192, 168, 1, 102 }; // ip in lan assigned to arduino
byte gateway[] = { 192, 168, 1, 1 }; // internet access via router
byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
EthernetServer server(84); //server port arduino server will use
EthernetClient client;
char serverName[] = "web.comporium.net"; // (DNS) zoomkat's test web page server
//byte serverName[] = { 208, 104, 2, 86 }; // (IP) zoomkat web

Must I change "char serverName"?
Thanks Fabio

Go Up