← Minecraft guides

Minecraft · updated 10 November 2026

Your Minecraft server's IP keeps changing: how to get a fixed address (DDNS)

Yesterday everyone could join and today your friends get “Connection timed out”, and you haven't touched a thing. If the server runs at home, your ISP has most likely changed your public IP. Here's how to check, how to give your server a name that doesn't change (free, with DDNS) and what to do if you'd rather not depend on your connection.

Different case? Ask with this guide inChatGPTClaude

Why your server's IP changes

Your home has two different IPs. The local one (192.168.x.x or 10.x.x.x) is your PC's address inside your network and only works at home. The public one is your router's address on the internet, and it's the one you give your friends so they can join.

Almost every home connection has a dynamic public IP: your ISP lends it to you and can hand you another one when you restart the router, after a power cut or, without warning, every so often. The address your friends saved no longer leads to your home, and the game waits until it gives up with “Connection timed out”.

Some ISPs will give you a fixed public IP, usually for an extra fee or on business plans. For a server with friends it's rarely worth it: DDNS does the same for free.

Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.

How to tell whether it has changed

  1. Check today's public IP

    Search “what is my IP” in the browser on the server PC and note it down. That's what your friends need to type, with :25565 after it only if you changed the port.

  2. Compare it with the one you gave them

    If they don't match, that's it: your IP is dynamic and it has changed. Give them the new one for today, then set up DDNS so you don't have to do this every week.

  3. Check the port is still open

    With Is my port open? you can see in one click whether your server can be reached from outside. If the IP is the same and the port shows as closed, the problem is something else: most likely your PC's local IP (how to reserve it) or the firewall.

  4. Rule out CG-NAT

    If the IP your router shows isn't the one “what is my IP” gives you, your ISP shares one IP between several customers (CG-NAT). DDNS won't help there, because there's no port to open: the port tool tells you, and playing without port forwarding explains the ways out.

What DDNS is

DDNS (dynamic DNS) is a name, like myfriends.duckdns.org, that points to your public IP and updates itself whenever it changes. Your friends save the name instead of the numbers, and when your ISP changes your IP, the name follows it within a few minutes.

For it to update, something at home has to tell the service your new IP every so often: the router itself, if it supports DDNS, or a small program on the server PC. If that stops, the name keeps pointing at the old IP.

In Minecraft Java you type the name in “Server Address” just like an IP. If your server uses a port other than 25565, it goes after it: myfriends.duckdns.org:25570.

Option 1: your router's DDNS

This is the best one if your router has it, because the router is always on and updates on its own even when the PC is off. Many routers have it in a section called “DDNS”, “Dynamic DNS” or similar, with a list of services to choose from (No-IP is one of the most common).

Routers supplied by ISPs don't always have it, or hide it. If yours doesn't, use option 2 or 3 on the server PC.

  1. Create the name with the service

    Sign up with a service your router supports and create a name (on No-IP, for example, a free “hostname”).

  2. Enter it in the router

    In the router's DDNS section pick that service and type the name, your username and the password or key the service gives you. Save.

  3. Check it updates

    The router usually shows the status (“connected”, “updated”) and the IP it sent. It must be the same one “what is my IP” gives you.

Option 2: No-IP

No-IP gives you free names under its own domains (such as ddns.net) and has a program for Windows, Mac and Linux that reports your IP, and it's built into many routers.

The catch with the free plan: you have to confirm the name every 30 days. You get an email with a link a few days before; if you don't click it (or confirm it in your account), the name expires and stops working. The program or the router sending your IP doesn't count as confirming. Its paid plan removes that confirmation.

  1. Create the account and the name

    Sign up at noip.com and create a hostname. Note down the full name.

  2. Install No-IP's program on the server PC

    It's their “Dynamic Update Client” (DUC). Sign in with your account and pick the name. Leave it starting with the system, so it keeps updating after a restart.

  3. Set a monthly reminder

    The confirmation email can land in spam. A phone reminder every 25 days stops the name from vanishing one day without you knowing why.

Option 3: DuckDNS

DuckDNS is free and doesn't ask you to confirm every month: you sign in with an account you already have (GitHub, Google…) and pick a name under duckdns.org. In exchange, it has no program of its own with windows: the update is a web address with your key that something has to open every few minutes.

It only points the name at your IP. It can't do SRV records, so if your server doesn't use 25565, your friends have to type the port after the name.

The address that updates your IP (replace NAME and TOKEN)
https://www.duckdns.org/update?domains=NAME&token=TOKEN&ip=
  1. Create the name

    On duckdns.org, sign in and type the name you want under “sub domain”. Copy the “token” shown at the top: it's your key, don't share it.

  2. Try it by hand

    Open the address above with your name and your token in the browser. If it replies OK, the name already points at your IP (with ip= left empty, DuckDNS uses the IP the request comes from).

  3. Make it repeat on its own

    On Linux, a cron line that opens it every 5 minutes with curl. On Windows, a Task Scheduler task that does the same. The steps for each system are on DuckDNS's own site, under “install”.

If you have your own domain

If you already own a domain, you can do the same with a name of your own (mc.yourdomain.com): many DNS providers, Cloudflare included, let a program change the record, and tools like ddclient know how to talk to them. With Cloudflare, the record has to be “DNS only” (grey cloud): with the orange cloud, Minecraft won't connect.

With your own domain you can also add an SRV record so nobody has to type the port. How to write each record is in a custom domain for your server.

What DDNS doesn't fix

DDNS only changes the name you type. You still need the port open, your PC's local IP reserved in the router and the Windows firewall letting Java through: it's all in opening port 25565.

It also doesn't change the fact that the world depends on your PC: if you switch it off, the power goes or your connection drops, nobody gets in. And each time the IP changes, for a few minutes (until the update arrives and everyone else sees it) your friends may fail to connect even with the right name.

An address that never changes, without keeping your PC on

On NapNodes every server already has its own named address, <identifier>.play.napnodes.com, and in Minecraft Java you join without typing the port. It doesn't depend on your home: there's no IP to change, no port to open and no program to keep updating. If you want a nicer one, in the panel go to “Home” → “Address to play” → “Change name”.

You can try it with the free Minecraft server, no card needed: you turn it on with “Start” when you're going to play and it shuts down on its own after an hour empty. If what you need is having it on all the time, see Minecraft server always online.

Frequently asked questions

Why can't my friends join my server when they could yesterday?

If the server runs at home, the most common reason is that your ISP changed your public IP when the router restarted. Check today's IP, give them the new one and set up DDNS so it doesn't happen again.

How do I know if my IP is dynamic?

If it changes when you restart the router or from one day to the next, it is. Almost all home connections are, unless you've paid your ISP for a fixed IP.

Which free DDNS works best for Minecraft?

Your router's, if it has one, because it updates on its own even with the PC off. Otherwise No-IP (free, but you must confirm the name every 30 days) or DuckDNS (free with no confirming, but you set up the update yourself).

Does DDNS work with CG-NAT?

No. With CG-NAT your public IP is shared and you can't open a port to your PC, so there's nowhere for the name to point. You need a tunnel, a virtual private network or a server hosted elsewhere.

Do I have to put the port after the name?

Only if your server doesn't use 25565. With your own domain and an SRV record you can avoid it; with free DuckDNS or No-IP, you type it after the name.

Shall we set it up for you?

Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.

Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.

Free tool: Is my port open?. Check from the internet whether your home server's port is open (Minecraft, Valheim, Zomboid) and whether your ISP uses CG-NAT.

Keep reading

All Minecraft guides, sorted →