In this tutorial we’re going to control 2 lamps with an Arduino and an Ethernet Shield. If you have an Internet connection you can control those lamps from anywhere in the world.
Click the Link Below for the Source Code and Schematics:
http://randomnerdtutorials.com/arduino-control-220v-lamps-from-anywhere-in-the-world/