Arduino Eithernet shield

I have do downloaded the attached code to my arduino then I have connected the eithernet shield directly to my laptop and put them in the same network, after that I was able to switch a led connected to D2 on/off. but when I put my lap top and the shield to the my Home network I can ping the shield from the laptop but I can’t switch the led on/off.

sketch_jul24a.ino (2.49 KB)

sayedmosalem: I have do downloaded the attached code to my arduino then I have connected the eithernet shield directly to my laptop and put them in the same network, after that I was able to switch a led connected to D2 on/off. but when I put my lap top and the shield to the my Home network I can ping the shield from the laptop but I can't switch the led on/off.

I am confused.

Which networks are you working with?

I want to work with my Home LAN network but it doesn't work. So I tried to connect the shield directly to my laptop through ethernet cable and I configured the IPs to be in the same network. and it worked.