Author Options:

Port forwarding, I think? Answered


I've been playing with this: http://www.panu.it/ardupower/.
It works fine when my iPhone is connected to the wifi network broadcast by the router to which the arduino (arduino ethernet shield) is connected. Is there a way of making it work across the internet, rather than just the local network? I imagine it has something to do with port forwarding, but I don't know much about it.

Thanks in advance.




6 years ago

I think you are correct and that you need to set up port forwarding on your router. 

This arduino program has the arduino listening and responding to telnet connections which use port 23.  This device sits on the inside of your home and your router uses Network Address Translation (NAT) to give your devices 'local' IP addresses while your router receives an Internet-wide IP address from your service provider.  Your router won't normally pass on the telnet traffic to your arduino so you'll have to go into its setup and tell it to forward PORT 23 traffic to the local IP address of the arduino.  Unfortunately each router is different so we can't be specific without knowing the model number, etc.

The web page for the project indicates the default IP address of the arduino is (but this can change).  Also note that your internet service provider may reassign a new IP address to your router occasionally so you'll always need to know your home's IP address.

Best Wishes.


6 years ago

Rather than using port forwarding, use a public ip address if your modem will let you. It will be more secure for the rest of your network. It would be up to you to do any programming (I am a network guy, not a programmer), but feel free to ask me if you need more clarification.

Good luck! :)


6 years ago

Not only the port forwarding, you have to develop a kind of webscript or script to work and communicate with your arduino, and since i`m not that kind of programmer... is just my advice.
I`m working mostly with linux systems, but i did not recognize your arduino programming.