Port 25565 — Minecraft (TCP)
What is Port 25565?
Pelayan Minecraft
This is a registered port (1024–49151) often assigned to vendor or application services like Minecraft. · No formal RFC; Minecraft Java Edition protocol
When do you need Port 25565 open?
Open if you are hosting a Minecraft Java Edition server for players outside your local network. You must also configure a port forwarding rule on your router directing external traffic on port 25565 to the server machine's local IP address.
Common uses and software
- Minecraft Java Edition server
- Paper
- Spigot
- Purpur
- Velocity proxy
- BungeeCord proxy
Security
Use a whitelist (white-list: true in server.properties) to control who may join. Keep the server JAR updated — Minecraft servers have been targeted by log4shell (CVE-2021-44228) and other vulnerabilities. Use a proxy layer (Velocity or BungeeCord) to hide the backend server's IP. Do not run the Minecraft server process as the root user.
Is Port 25565 safe?
An open port increases your attack surface. Safety depends on how Minecraft is configured.
Low risk, but confirm that Minecraft on this port is intentionally running and required by your application before leaving it open.
Test connectivity for Port 25565 on any host.
How to Open Port 25565
To allow incoming connections to Port 25565 (Minecraft) from outside your network, configure your firewall and add a port forwarding rule on your router pointing to your device's local IP address.
Open Windows Defender Firewall → Advanced Settings → Inbound Rules → New Rule → Port → TCP → Specific local ports: 25565 → Allow the connection → Name and save the rule.
netsh advfirewall firewall add rule name="Open Port 25565" dir=in action=allow protocol=tcp localport=25565sudo ufw allow 25565/tcpsudo iptables -A INPUT -p tcp --dport 25565 -j ACCEPTLog into your router (192.168.1.1 or 192.168.0.1) → Port Forwarding → Add a new rule: Protocol TCP, External port 25565, Internal IP: your device's local IP, Internal port 25565 → Save.
How to close Port 25565
If you do not need Minecraft, block this port in your firewall or router.
To block port 25565 on Windows, run the following command in PowerShell or Command Prompt (as Administrator):
netsh advfirewall firewall add rule name="Block Port 25565" dir=in action=block protocol=tcp localport=25565sudo ufw deny 25565/tcpsudo iptables -A INPUT -p tcp --dport 25565 -j DROPRemove or disable any port forwarding rule for Port 25565.
Frequently Asked Questions
What is Port 25565 used for?▾
Port 25565 is the default TCP port for Minecraft. It is used by servers and applications that need to accept incoming connections for this service. Whether you need it open depends on whether you are actively running a Minecraft server — if not, it should remain closed to reduce your attack surface.
Is Port 25565 safe to keep open?▾
An open Port 25565 increases your attack surface. If you are not actively running Minecraft, close this port in your firewall and remove any port forwarding rules. If Minecraft must be accessible, restrict access to known IP ranges, keep the service software updated with security patches, and use strong authentication.