ethernet shield does not work...

i got bought an Ethernet Shield W5100 For Arduino 2009 UNO Mega 1280 2560 from ebay for 14bucks.....

dhcpadress printer just prints "My IP address: 192.168.2.3."

i connected it to the pc and loaded many ethernet examples but none of them work....

when i load webserver example it says "server is at 192.168.1.177" but when i enter 192.168.1.177 into browser it doesnot load..

Repeating webclient example just prints "My IP address: 10.0.0.20" in serial nothing more after that....

what am i doing wrong here?

i connected it to the pc and ...

You need to connect the ethernet shield to a router unless you are knowledgable of how to directly connect it to a pc. The connection methods are different.

i connected it to router also :stuck_out_tongue:

if i dint it wouldnt have shown me my ip adress riteā€¦

kiriti: i connected it to router also :P if i dint it wouldnt have shown me my ip adress rite...

These appear to be different subnets. Which do you think is the right ip address?

dhcpadress printer just prints "My IP address: 192.168.2.3." (snip) when i load webserver example it says "server is at 192.168.1.177" (snip) Repeating webclient example just prints "My IP address: 10.0.0.20" in serial nothing more after that....

i dont know which is correct, how to check?? my belkin router homepage does not list arduino device in dhcp list....

and in ipv4 settings are set to get the ip address automatically in controlpanel>adaptersettings>properties>ipv4...

What is the address of your router? That will tell you which network you need to be on.

192.168.2.1

is my belkin router homepage address

Ok. So the DHCP address seems reasonable.

In the WebServer example sketch, change

IPAddress ip(192,168,1, 177);

to

IPAddress ip(192,168,2, 177);

which will put the Arduino on to your subnet.

hey thanks :D changing my ip in webserver to 192.168.2.177 worked :D

and what about webclient repeating and all?? i used IPAddress ip(192,168,2,20); IPAddress myDns(192,168,2,1);

but i guess webclientrepeating is not working still...

This link has repeating client code. It downloads Google home page every 10 seconds. http://arduino.cc/forum/index.php/topic,99629.msg754629.html#msg754629 It uses the ip 192.168.2.2. It works for me. See if it works for you also.

yeah that code works for me too... failed for the first time but it passed from the next time....