Ethernet shield Coding

Is that a switch or a router?

Do you have a commercial account (static IP) with your ISP? If not commercial, it is probable that your ISP blocks certain ports, like port 80 requests from the internet.