MineFixTools server utility lab
Fixes 1 min read Updated

How to Change Minecraft Server Port

Change a Minecraft server port safely by editing server.properties, updating panel allocations, firewall rules, router forwarding, and DNS SRV records.

Changing a Minecraft server port is simple only if every layer is updated together. If one layer still points to the old port, players will fail to connect.

Edit server.properties

server-port=25577
server-ip=

Restart after editing. Do not use /reload for network binding changes.

Update Every Layer

| Layer | Update needed | | --- | --- | | Minecraft server | server-port | | Host panel | Allocation or exposed port | | OS firewall | Allow new TCP port | | Router | Forward new TCP port | | DNS SRV | Update target port | | Player address | Add :port if no SRV record |

Use Minecraft port 25565 explained if you are unsure why the default port matters.

Do not reuse a port already taken

If another service is already listening on the new port, the Minecraft server may fail to bind or players may reach the wrong service.

Domain With Custom Port

Players can type:

play.example.com:25577

Or you can create an SRV record so they type only:

play.example.com

Follow the SRV record guide for that setup.

Verify the New Port

After restart, use how to check if port 25565 is open, but test your new port instead of 25565.

FAQ

Can Minecraft use a port other than 25565?

Yes. Java servers can use another port if server.properties, firewall, router, panel allocation, and DNS all match.

Do players need to type the new port?

Yes, unless the port is 25565 or you configure an SRV record for the domain.

Should I change server-ip too?

Usually no. Leave server-ip blank unless your host explicitly requires a bind address.

Related Tools

Related Articles