In short: IP Cloud is the free service with which RouterOS gives the router a fixed DNS name, serial-number.sn.mynetname.net, that follows the public address. The router asks the MikroTik server “what address do you see me at?” and the name points to that answer, even behind a NAT. The name helps you find the router, not open it.

What is IP Cloud?

It’s the /ip cloud menu, which gathers MikroTik’s free cloud services: the dynamic DNS name (DDNS), the time at boot, and Back To Home. This card explains how the DDNS works under the hood. To turn it on step by step there’s already the howto MikroTik IP Cloud: a fixed name for the router with a dynamic IP.

It’s always the router that opens the connection to the MikroTik servers. That’s why the DDNS needs no port forward on the modem in front.

It works on routerboards and on the CHR with a paid perpetual license. On RouterOS installed on an x86 PC it isn’t there.

How does the router discover its public address?

It asks the MikroTik server. The router sends an encrypted request to cloud2.mikrotik.com and the server replies with the address it received it from. That address ends up in public-address.

/ip cloud print
          ddns-enabled: yes
  ddns-update-interval: none
           update-time: yes
        public-address: 203.0.113.10
              dns-name: hf1234abcd5.sn.mynetname.net
                status: updated
      back-to-home-vpn: revoked-and-disabled

The router doesn’t look at the addresses on its own interfaces: it looks at how the internet sees it. Three things follow from this:

  • behind a NAT, public-address is the address of the modem or router doing the NAT, not an address of the MikroTik;
  • with more than one internet line, according to the documentation it’s the address of the line whose route reaches cloud2.mikrotik.com: with a failover, the name follows the line that route goes over;
  • with IPv6: according to the documentation, if the router reaches the server over IPv6 as well, public-address-ipv6 appears and the name resolves to that address too.

public-address shows up after the server’s first reply, even when only the time update is running and the DDNS is off.

How is the name built?

It’s the router’s serial number in lowercase, followed by .sn.mynetname.net. You don’t choose it and it doesn’t change: it stays tied to that device. It resolves to public-address with a TTL of 60 seconds.

Want a name of your own? In your domain you create a CNAME record that points to the sn.mynetname.net name.

⚠️ Warning: the serial number is on the label and on the box. Whoever knows it finds your public address. The name is not a secret: the protection is done by the input firewall, as in the Basic hardening of a MikroTik router.

A side effect: the name brands you as a MikroTik

There’s a flip side worth knowing. The name is your serial number, in the clear, inside a DNS zone that belongs to MikroTik (sn.mynetname.net). Two consequences follow.

First: whoever resolves that name and gets an answer knows at once that there’s a MikroTik with IP Cloud on at that address. It’s one more fingerprint for anyone hunting targets — a name that doesn’t exist doesn’t resolve (NXDOMAIN), a real one answers with the public address. It’s a yes/no switch on the serial number.

Second: anyone who knows your serial number — printed on the label and the box, visible in installation photos or in an old configuration export — can resolve your current public address whenever they like, because the name always follows it.

It’s not a hole: security is done by the input firewall, and the name alone opens nothing. But if your threat model cares about not announcing “there’s a MikroTik here”, or not tying a fixed identifier to your address, consider a dynamic DNS on your own domain or a VPN with an endpoint of your own instead of the exposed sn.mynetname.net name.

When does the router update the name?

On its own, when needed. Behind a NAT, where the router doesn’t see the public address on its interfaces, it sends an update every minute. If you want extra updates at a fixed interval, there’s ddns-update-interval: the default is none, the minimum is 1 minute.

/ip cloud set ddns-update-interval=10m
/ip cloud force-update

force-update sends an update right away, for example after you’ve switched line. With the DDNS off it does nothing.

You read the state of the last request in status:

  • updated: the server confirmed;
  • updating...: the router sent the request and is waiting for the reply. If it doesn’t arrive, it retries at longer and longer intervals.

What does ddns-enabled=auto mean?

That the DDNS is on only while Back To Home is on. auto is the factory value; with yes the DDNS stays on all the time.

When the DDNS turns off, the router asks the server to delete the name: in the lab it stopped resolving in under a minute. If you use Back To Home, putting auto back isn’t enough: the DDNS stays on until you turn Back To Home off too.

What happens behind a NAT or a CGNAT?

The name points to the right place, but the port can be closed. Behind the ISP’s modem the name resolves to the modem’s public address, and /ip cloud print shows the warning Router is behind a NAT. Remote connection might not work.

With a NAT of your own, on the modem you forward to the MikroTik the port you need, for example the VPN’s UDP port. With an ISP CGNAT, the public address belongs to the ISP’s NAT and you can’t forward the port yourself: the name resolves, but you can’t get in from outside. There you need Back To Home, which goes through a MikroTik relay.

There’s also the opposite case: you want the name to resolve to the router’s local address inside the network.

/ip cloud advanced set use-local-address=yes

With yes the name points to the address the router sends its requests from, for example a private address like 10.6.0.2/12 behind the lab’s NAT (adapt the addresses to your network). public-address still shows the public address. Watch out: from outside, that name no longer leads to the router.

In the lab the name switched to the private address after a little over a minute. When you set use-local-address=no again, also run /ip cloud force-update: without it, the name stayed on the private address.

And what is Back To Home?

It’s a ready-made WireGuard VPN, configured from the Back To Home app on the phone, that works even without a public address. When the router isn’t reachable directly, the phone goes through a MikroTik relay; the encryption stays end to end and the relay doesn’t read the traffic.

It uses a name of its own, serial-number.vpn.mynetname.net, and with ddns-enabled=auto it turns the DDNS on as well. For a VPN under your own control, the way remains WireGuard configured by hand.

What does the router send to the MikroTik servers?

Only what the services you’ve turned on need. Out of the box the router asks the server, at boot, for the time and the time zone (update-time and time-zone-autodetect); the DDNS doesn’t. For the time zone the server looks up the location of your public address.

If you don’t want any request toward cloud2.mikrotik.com:

/ip cloud set ddns-enabled=auto back-to-home-vpn=revoked-and-disabled update-time=no
/system clock set time-zone-autodetect=no

The time from the cloud is approximate: if the NTP client is on, the router doesn’t use it anyway. Detect Internet is a different thing: it talks to cloud.mikrotik.com on UDP port 30000 and is off out of the box.

What are the typical mistakes?

The name resolves, but I can’t get in from outside

The name helps you find the router, it doesn’t open ports. Check, in order: the MikroTik’s input firewall, the port forward on the modem in front, and whether you’re behind a CGNAT. In the third case no forward saves you.

status stays on updating…

The router gets no reply from cloud2.mikrotik.com. Check that the router resolves DNS names and that no output rule, or a firewall further upstream, blocks the router’s traffic to the internet. On a CHR, check that you have a paid perpetual license.

The address changed but the name didn’t

Behind a NAT the router updates every minute and the TTL is 60 seconds: wait a couple of minutes, or run /ip cloud force-update. If the PC still answers with the old address, try another resolver: it may be the client’s DNS cache.

I set auto but the name still resolves

Two possibilities: Back To Home is on, in which case the DDNS stays on; or you’re looking in the first few minutes, before the deletion arrives.

Where do I use it?

All the properties are in the MikroTik manual: Cloud.

Tested in the lab on a routerboard with RouterOS 7.24.5 (stable), behind NAT: public-address and the NAT warning, name equal to the serial number with TTL 60, 1-minute minimum for ddns-update-interval, force-update, use-local-address (name on the private address and return with force-update), deletion of the name with ddns-enabled=auto. Multiple lines, IPv6, and CHR licenses are from the documentation.

Frequently asked questions

How does the MikroTik know its public IP if it’s behind the modem?

It asks the MikroTik server: it sends a request to cloud2.mikrotik.com and the server replies with the address it received it from. Behind a NAT that’s the modem’s public address.

How often does the IP Cloud name update?

Behind a NAT the router sends an update every minute, and the name has a TTL of 60 seconds. You can add periodic updates with ddns-update-interval (minimum 1 minute) or force one with /ip cloud force-update.

Does IP Cloud work with CGNAT?

The name does: it resolves to the public address of the ISP’s NAT. But you can’t reach the router from outside, because you can’t forward the port on that NAT. In that case you need Back To Home, which goes through a MikroTik relay.

Does IP Cloud work on CHR?

Yes, but only with a paid perpetual license. On RouterOS for x86 it isn’t available.

How do I turn IP Cloud off?

With /ip cloud set ddns-enabled=auto, with Back To Home off. The router asks the server to delete the name, which stops resolving within a few minutes.