Yes, I can still Ping it after. Right now it does not show up in the router dhcp table, but I can till ping.
I`m very new at this network stuff, but I spent most of last night trolling this forum, so I am starting to catch-up. I know the problem probably exists outside of the Arduino World, but I am at a lost.
Thanks,
NEW info:
My test code doesnt work at all anymore (nothing changed just restarted my computer). The web client example (using dhcp) works fine, but if I try to assign an ip manually it doesn
t work (even if it`s the same as the router would assign - after deleting the previous entry).
REQUESTED info:
lap-top (netbook actually) is connected through wifi (but gateway and subnet is same as wired)
ethernet board is wired to router
dhcp server is enabled
I can also load the text file from my browser using the ip address (i.e. 192.168.1.101/arduino.html)
CODE:
//zoomkat 11-13-10
//simple ethernet client test code
//for use with IDE 0021 and W5100 ethernet shield
//modify the arduino lan ip address as needed
//open serial monitor to see what the arduino receives
//push the shield reset button to run client again
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0x80, 0x65 };
byte ip[] = { 192, 168, 1, 104 }; //assigned arduino LAN IP address
byte server[] = { 192, 168, 1, 101 }; // laptop running apache LAN IP address
byte gateway[] = { 192, 168, 1, 1 };
byte subnet[] = { 255, 255, 255, 0};
EthernetClient client; //apache web server running on port 80
void setup()
{
Ethernet.begin(mac);//, ip, gateway, subnet);
Serial.begin(9600);
Serial.println("starting simple arduino client test");
Serial.println();
delay(1000);
Serial.println("connecting...");
if (client.connect(server, 80)) {
Serial.println("connected");
client.println("GET /arduino.txt HTTP/1.0"); //text file in apache htdocs folder
client.println();
} else {
Serial.println("connection failed");
}
}
void loop()
{
if (client.available()) {
char c = client.read();
Serial.print(c);
}
if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
Serial.println("==================================");
Serial.println("");
client.stop();
for(;;);
}
}