Locating your IPv4 address for Minecraft hosting is a fundamental step for anyone running a private server or troubleshooting connection issues. This unique numerical label acts as your digital coordinates on the internet, allowing friends to bypass the main server list and join your world directly. Without the correct address, players will be unable to connect, regardless of how stable your local network or powerful your hardware. The process differs slightly depending on whether you are hosting locally or using a dedicated service, but the core principles remain the same.
Understanding IPv4 and Minecraft Networking
Before diving into the lookup process, it helps to understand the relationship between IPv4 addresses and Minecraft’s architecture. Minecraft relies on specific ports—primarily 25565—to transmit data between the client and the server. Your IPv4 address functions like a home address, while the port number acts as the specific door to enter. If your router is not configured to forward traffic to this port, external players will be unable to reach your local machine, even if they have the correct IP. This concept, known as port forwarding, is often the root of connection issues.
Finding Your Local IPv4 Address
Your local IP address is assigned by your router and is used to identify your specific device on your home network. This is distinct from your public IP, which is how the internet sees you. To find the local address, you will use the command prompt or terminal, which provides a direct line to your system’s network configuration.
Windows Users
Press the Windows key + R, type cmd , and hit Enter.
Type ipconfig and press Enter.
Look for the line labeled IPv4 Address next to your active connection, usually listed under "Ethernet adapter" or "Wireless LAN adapter."
macOS and Linux Users
Open the Terminal application.
Type ifconfig or ip a and press Enter.
Locate the inet address under the active network interface, such as en0 or eth0 .
Determining Your Public IPv4 Address
While your local IP is essential for local testing, friends on external networks need your public IP to connect. This address is assigned by your Internet Service Provider (ISP) and changes periodically unless you have a static plan. Finding this is straightforward and requires no command-line expertise.
Using a Web Service
The easiest method is to visit a dedicated IP lookup website. These sites display your public-facing address instantly, often providing additional details like location and ISP. Simply open a browser, search for "What is my IP," and the result will appear at the top of the page. Ensure the service you use is reputable and does not clutter the page with excessive ads or tracking scripts.
Configuring Router for Minecraft
Obtaining the IP is only half the battle; ensuring your router allows traffic to reach the server is the next critical step. Most routers have a firewall that blocks unsolicited external traffic by default. To allow your friends to connect, you must create a port forwarding rule that directs traffic from the internet to your local machine.
Steps to Forward Ports
Enter your router’s admin page by typing the gateway address (often 192.168.1.1 or 192.168.0.1) into a browser.
Log in using the admin credentials, usually found on a sticker on the router or in the manual.
Locate the "Port Forwarding" or "Virtual Servers" section.