What a port actually is
An IP address identifies a machine; a port identifies a service on that machine. One server can host a website, a database, and a game server at the same address because each listens on a different port.
Minecraft’s default, 25565, is simply a convention. Nothing breaks if you use another, as long as every player knows to include it.
TCP, UDP, and why both matter
The game uses TCP for the main connection — reliable and ordered, which suits chat and world data — and UDP for some query and voice-adjacent features. Port-forwarding rules should therefore cover both protocols.
Forgetting UDP is a common cause of a server that players can join while server-list queries and some tools fail.
When to change the default
Change it only for a reason: another service already occupies 25565, or network policy demands it. The cost is that every player must type the port, and any saved address without it stops working.
On a hosted server the port is generally fixed for you, and an SRV record can hide even a non-default port behind a plain domain name.
Hosted versus self-hosted
Hosting platforms allocate public connectivity, so there is no port to forward and no router to configure. That single difference removes the most common reason self-hosted servers are unreachable.
If you self-host, port 25565 must be forwarded on the router and allowed through the machine’s firewall before anyone outside your home can connect.
FAQ
Common questions
Do I need to open port 25565 on my PC if I use a hosting service?
No. Hosted servers already sit on public networking, so nothing on your home network needs configuring. Port forwarding only applies when the server itself runs at home.
Can two Minecraft servers share one IP address?
Yes, if they use different ports. Players then connect with address:port. On a shared host this is handled for you, which is why different servers on the same node have different port numbers.