Raspberry-pi-Control-LED-over-network watch the video for setup: http://hackaholic.info/raspberry-pi-controlling-led-over-network