Access LAN using DDNS (cloud) address

Good morning!

I’m trying to figure out how can I access my mikrotik locally but using the DDNS address.. Right now i can access it remotely, but when i’m at home if I need to access my mikrotik or any or my devices i need to change to the local ip instead of using the DDNS address.

any help will be appreciated!

Thanks in advance!

What you are looking for is called Hairpin NAT.

Are you accessing it remotely through a VPN?

But i remember from other posts you don’t like Hair Pin NAT… :laughing:

If you want to access just your router from inside the LAN you can just add a static DNS entry…

In case you want to access more then as xvo suggested you should use Hair Pin NAT…

I don’t, and I try to avoid using it myself :smiley:
I see no problem having different subdomains for different services.
That and a local DNS server is a more “healthy” approach.

But with all that said, and with all the downsides of hairpin NAT, it is still the most simple way to do it.
And anyway, it is not for me to decide for other people. :slight_smile:

and with all the downsides of hairpin NAT

What are the downsides ?

  1. Masking the real src-address.
  2. Unnecessary traffic through router.

But think about upsides. Well, just the one upside, it doesn’t even need more. It’s one-time config, you won’t need to touch it ever again, because it’s completely transparent and compatible with everything. It’s still a hack, no doubt, but it’s hard to not like it.

I am perfectly aware of the upsides.
As I wrote myself - it is the easiest way to configure, to maintain and to explain to the other person.

Know you tools and use them according to the task, right?! :slight_smile:

And since when we are looking for the easy ways?! :wink:

Thank you all for the replies!

I’m running a few system in my home network, like cameras, home assistant and other stuff that i would like to be able to access them and no need to change the ip to the local ip..

Use Hairpin NAT https://wiki.mikrotik.com/wiki/Hairpin_NAT