Arduino Uno and out-of-LAN control

Hi guys,

I'm rather new to TCP/IP, UDP, DHCP and many other clever abbreviations. But don't get me wrong, I do know the basics of basics.

What I need is to control to my arduino with Ethernet Shield, using simple udp or tcp text messages. I managed to do it on LAN, but Internet/WAN is a different matter. It also worked (over internet) at home with simple port forwarding on the router, but this one had a static public IP. The ISP, in the place where I want to install my arduino provides dynamic public IP. So here comes my question. Is it possible to reach my arduino using dynamic DNS service, such as no-ip for instance?

I mean, if I put the DNS server to port redirection(80 to 2000 for example) mode and then send my udp message to DNS server IP, port 80, will the message be forwarded to my router (port 2000) and then finally to arduino?
Do I get it right? I will handle the code, but do I seem to understand the message's route just a bit?

I guess it would be trivial to use arduino webserver, but I would like to avoid using any arduino Websever things and crazy HTML coding.

Thanks for any help :slight_smile:

I would try it before subscribing to a dynamic DNS service. Some (many) ISPs block certain ports. Port 80 is a common IP to block. I use ports 5005 or 8088 for UDP ports. They are rarely blocked.

Thank you for your answer.

Well, I found out that my problem lies deeper. I noticed that my WAN IP is different to my public IP. That's most probably due to additional routing. In this case, I would need to ask my internet provider to forward some port for me (don't think they'll cooperate), or request static IP (additional $$ always works).

Nevertheless, simple DNS lookup is sufficient to trace the public IP changes, so I guess it would work in such indirect way (getting the IP, then sending message). Unfortunately, it can't improve the situation, when the case with my ISP persists.