When setting up or joining a Minecraft server, choosing the correct IP address is essential for a smooth connection. The right IP helps you bypass connection errors, reduce lag, and avoid accidental redirects to unintended servers.
This guide explains what IP to use for Minecraft server in clear, practical terms so you can start playing or hosting without confusion.
| Server Type | IP Address to Use | Port | Notes |
|---|---|---|---|
| Local Server (LAN) | Local IP of host machine (e.g., 192.168.1.10) | 25565 (default) | Only reachable within the same local network |
| Public Dedicated Server | Public IPv4 address or domain provided by host | 25565 (default or custom) | Requires port forwarding and static IP or DDNS |
| Realms Server | play.minecraft.net (managed by launcher) | 443 | No manual IP entry; use subscription-based access |
| Proxy or Cloud Relay | Proxy server address configured in dashboard | 25565 or provider-specified | Hides backend IP, adds DDoS protection |
Finding the Server IP in the Minecraft Launcher
The simplest way to determine what IP to use for Minecraft server is to check directly in the official launcher. Realms and many local networks show the address automatically, which removes manual errors and connection timeouts.
For multiplayer, open the launcher, go to Play, and select your server entry. If it is a Realms server, the launcher handles the connection details, so you never need to enter a raw IP manually. For other servers, you may see an IP listed in the server properties or during the join process.
When hosting locally, you can find your machine’s local IP using system tools. On Windows, use ipconfig and look for the IPv4 address under your active network adapter. On macOS and Linux, check system settings or run ifconfig or ip a in the terminal to locate the address to share with friends on the same network.
Public Servers and Domain Addresses
Many players join public servers that advertise a domain name instead of a raw IP. Using a domain is often better because it remains stable even if the underlying IP changes, thanks to the provider’s infrastructure.
If you are given a server address like play.example.com, enter that exactly into the Server Address field in the Minecraft multiplayer menu. The game will resolve the domain to an IP automatically, as long as the server owner has configured DNS records and port forwarding correctly.
For server owners, pointing a domain to your public IP adds professionalism and simplifies updates. You manage the DNS records at your domain registrar or hosting provider, mapping the domain to your static IPv4 address so players always connect to the correct endpoint.
Port Forwarding and Network Configuration
Even when you know what IP to use for Minecraft server, you still need proper network setup. By default, routers block incoming connections, so port forwarding is necessary to make your server reachable from the internet.
Access your router admin panel, locate port forwarding or virtual server settings, and create a rule that sends traffic on port 25565 to the local IP of your machine running the server. Some server software allows alternative ports, in which case adjust both the forwarding rule and the address players use accordingly.
Always verify that your public IP has not changed after a router reboot, especially if you rely on dynamic IPs. Consider using DDNS services or a paid static IP from your internet provider to keep the address predictable for regular players.
Security and Connection Reliability
Using the correct IP is not only about connectivity; it also impacts security and reliability. Misconfigured addresses can expose internal devices or redirect players to unintended services, which may result in poor performance or blocked connections.
If you run a public server, consider placing a proxy or DDoS protection service in front of your backend. The proxy hides your actual public IP, mitigates attacks, and can provide region-based routing to improve latency for distant players while keeping your infrastructure safe.
Test your setup by connecting from an external network, such as a mobile hotspot, to confirm that the IP and port combination work as expected. Monitor logs for refused connections or timeouts and adjust firewall rules, router settings, or DNS records until access is seamless.
Final Recommendations for Server IP Usage
Making the right choices about IP addresses keeps your Minecraft experience stable, secure, and easy to share with others. Understanding your network setup and player access method prevents most connection issues before they happen.
- Use the local IP for LAN play and verify it with ipconfig or ifconfig
- Prefer a domain name for public servers to handle IP changes gracefully
- Configure port forwarding or a proxy when hosting externally
- Test connections from an external network to confirm reachability
- Monitor and document your IP setup to simplify future troubleshooting
FAQ
Reader questions
What should I enter as the Server Address if I am joining a local LAN server?
Enter the local IP of the host machine, such as 192.168.1.10, and make sure the port matches the one set in the server properties, typically 25565.
Can I use a domain name instead of an IP when adding a server to my list?
Yes, if the server uses a domain like play.example.com, type that exactly into the Server Address field so the game resolves it to the current IP automatically.
Why does my server show a different IP from what I expect when joining online?
Your public IP may be different from your local IP, or your router might be assigning a new address. Check your public IP via a website or command line and update any DNS or port forwarding settings if it changed.
Do I need to forward ports if I only use Realms or a proxy service?
No, with Realms the launcher manages connections, and with a proxy the provider handles networking. You only need manual port forwarding when hosting directly on your own server hardware.