First, you need to connect your Arduino to your home LAN in some way. There are a number of ways to do this. Where is the relay that is being controlled in relation to your network? Do you need a wireless connection to your LAN, or can you reach the Arduino with an ethernet cable?Second, you need to set up port forwarding on your router. This basically means that when outside your LAN, you connect to your public IP address on your router, connecting on a port that has been configured to connect ("forward") to the LAN IP address and port number of your Arduino. Does that make sense? If not, google "port forwarding" and have a read.Third, you need to write a program for your Arduino so that a) it can control the relay, and b) it can communicate via the network with an incoming connection (from your smartphone). Probably the most common thing is to set up your Arduino to act as a simple web server, which can report status and take control commands, and connect to it via a web browser on your phone. So that's the outline. It has been done many times before. The main variations are what hardware you use to connect your Arduino to your LAN, and the specifics of how you write your Arduino program to perform the functions you require.
Thanks!!yes of course the adruino web page have to be protected by a password or somethingI need some help with the CODE because i dont really know how to communicate between the Adruino , PC , and the PhoneIm an electrician so the wiring is a piece of cake for me but the code for communicate is little bit a problem for me :\So thanks again!!!
So back to my problem i need source code with :1. Connection to lan + server + little web site (like remote control)2. The arduino can control 8 relays (5v)
Thanks for the replay , about the 2 option.. How much its gonna cost?