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.
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
server.properties Generator
Generate a clean Minecraft server.properties baseline for online mode, max players, difficulty, view distance, simulation distance, and command blocks.
Minecraft MOTD Generator
Generate a Minecraft server MOTD with legacy color codes, two-line formatting, preview text, and server.properties-ready output.
Minecraft Port Checker / Troubleshooting Wizard
Build a Minecraft port troubleshooting plan for port 25565, home hosting, VPS firewalls, panel allocations, proxy networks, DNS, and CGNAT.
Related Articles
Minecraft Port 25565 Explained
Understand Minecraft port 25565, when to change it, TCP vs UDP, port forwarding, firewalls, SRV records, and common server-port mistakes.
How to Check If Port 25565 Is Open
Check whether Minecraft port 25565 is open by confirming server startup, local access, public IP, firewall rules, port forwarding, and external reachability.
How to Create an SRV Record for Minecraft Server
Create a Minecraft SRV record for Java servers using the correct _minecraft._tcp name, target hostname, port, priority, weight, and DNS-only settings.