Arduino home automation help!!

I'm currently working on setting up home automation using arduino UNO and a raspberry pi to run the programming software. I've got it working at the moment turning a simple LED on and off over the web but it only works on my home network.

I REALLY want it to work anywhere over 3G from my phone or for my work computer but I can't figure out how to set that part up..

PLEASE HELP :slight_smile:

Thank you in advance....

(Ps I'm fairly new to this as well so not that technical at the moment)

You'll probably need to set up a DMZ on your internet router to pass traffic coming in to your external IP on a certain port to your internal IP address.

What's the make/model of your internet router (typically a cable modem or DSL modem)?

It's a Belkin router. Thanks very much for the help, I've managed to get it working now. Just needed to set up port forwarding..

Thanks very much

Ok, cool. Just be aware that your web server is now visible to the Wild West of the internet... make sure you keep it patched, do not run it as root, and set up some kind of secure authentication to keep l33t h@ckerz out of it. Strategies like a 60-second delay after three incorrect password attempts will help discourage dictionary attacks.

It's now a question of when, not if, your system is attacked. :slight_smile:

You can use a dynamic IP service like no-ip.com to handle the possibly changing IP address assigned to you by your ISP. DMZ not required, just use port forwarding on your router. You should be able to find your info below.

https://www.google.com/search?as_q=port+foward+belkin+router&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=

Can someone suggest some code for this newbie which will require a login/pw to access a webserver running on my Arduino?
Thanks much in advance...Arniep