Step 3: The circuit
Connect the base of the transistor to the pin used in the code I used pin 13
Connect your light bulb in series with switching contacts of the relay.
And connect your arduino to your server.
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.