Use ipconfig to find your local IP address
Open Command Prompt and type ipconfig, then press Enter. Look for "IPv4 Address" under your active network connection — this is the local IP address your computer uses on your home network. For most Minecraft setups, this is the address you need to give to friends who want to join your server.
The ipconfig command shows all network adapters on your computer. If you have both Wi-Fi and Ethernet connections, you'll see multiple entries. Use the IPv4 address from whichever connection your computer is actually using — check your network icon in the system tray to confirm whether you're on Wi-Fi or wired.
Write down the full IPv4 address exactly as it appears. It will look something like 192.168.1.100 or 10.0.0.50. This is what you share with players on your local network who want to connect to your Minecraft server.
Key Takeaways
- Type ipconfig in Command Prompt to see your local IP address under the "IPv4 Address" field.
- Your local IP address (usually starting with 192.168 or 10.0) works only for players on your home network.
- To let friends outside your home join, you need your public IP address, which you can find by searching "what is my IP" in any web browser.
- If you're running a Minecraft server, you may also need to set up port forwarding in your router settings to allow outside connections.
- Your local IP address can change over time, so check it again if players report connection problems.
Find your public IP address for remote players
If friends outside your home network want to join your Minecraft server, you need your public IP address, not your local one. Command Prompt doesn't show this directly, but you can find it by opening any web browser and searching "what is my IP" — the first result will display your public address.
Your public IP is assigned by your internet service provider and is what the outside world sees when you connect to the internet. This is different from your local IP, which only exists within your home network. When you give someone your public IP to join your Minecraft server, they're connecting through your internet connection to your router, which then forwards the traffic to your computer.
Understand the difference between local and public addresses
Your local IP address (from ipconfig) only works for devices already on your home Wi-Fi or Ethernet network. If your friend is sitting in your house on the same Wi-Fi, they use your local IP. If they're at their own home across town, that address is useless to them.
Your public IP address is what identifies your entire home network to the internet. It's assigned by your internet service provider and changes periodically — sometimes daily, sometimes monthly, depending on your plan. This is why some players set up dynamic DNS services, which automatically update a web address when your public IP changes, so friends don't have to ask for a new address every time.
Set up port forwarding if remote players can't connect
Giving someone your public IP isn't always enough. Your router has a firewall that blocks incoming connections by default. To let remote players reach your Minecraft server, you need to forward port 25565 (Minecraft's default port) from your router to your computer's local IP address.
Log into your router's settings — usually by typing 192.168.1.1 or 192.168.0.1 into a web browser, then entering your router's username and password (often printed on the router itself). Look for a "Port Forwarding" section, then create a new rule that sends traffic on port 25565 to your computer's local IP address. The exact steps vary by router model, so search your router's brand and model number plus "port forwarding" if you get stuck.
After port forwarding is set up, test it by having a friend outside your network try to connect using your public IP address and port 25565 (formatted as your.public.ip:25565). If it still doesn't work, double-check that your Minecraft server software is actually running and listening on that port.
Check your server port in Minecraft settings
By default, Minecraft servers listen on port 25565. If you've changed this in your server.properties file, you need to use that custom port number instead. Open your server.properties file (usually in your server folder) and look for the line that says server-port= followed by a number.
If it says server-port=25565, use the standard port. If it says something like server-port=25566, then remote players need to connect to your.public.ip:25566. Make sure your port forwarding rule in your router matches whatever port your server is actually using, or remote players won't be able to reach it.
Troubleshoot when players report connection errors
If players say they can't connect, first confirm you're giving them the right information. Run ipconfig again — your local IP may have changed since you last checked. If you're giving out your public IP, search "what is my IP" again to confirm it hasn't changed.
Ask the player whether they're on your home network or connecting from elsewhere. If they're on your home Wi-Fi, they should use your local IP from ipconfig. If they're remote, they need your public IP plus the correct port number. Have them try connecting with the format your.public.ip:25565 (or whatever port you're using).
If port forwarding is set up but still doesn't work, restart your router and your Minecraft server. Also verify that your server software is actually running — some server programs fail silently and appear to be running when they're not.
Frequently Asked Questions
Why does my ipconfig show multiple IP addresses?
You likely have multiple network adapters — one for Wi-Fi, one for Ethernet, possibly one for a virtual machine or VPN. Use the IPv4 address from the adapter your computer is actually using right now. Check your network icon in the system tray to see whether you're connected via Wi-Fi or Ethernet, then use the matching address from ipconfig.
Does my IP address ever change?
Your local IP can change if your router restarts or your computer reconnects to the network. Your public IP changes on a schedule set by your internet service provider — sometimes weekly, sometimes monthly. If you want a stable address for remote players, consider setting up dynamic DNS or paying for a static IP from your provider.
Can I use ipconfig to find someone else's Minecraft server IP?
No. The ipconfig command only shows your own computer's addresses. To find a server's IP, the server owner has to tell you, or you can look it up in your Minecraft multiplayer server list if it's a public server. You cannot discover someone else's IP through Command Prompt.
What if I don't want to use port forwarding?
You can use a tunneling service like Ngrok or Cloudflare Tunnel instead, which creates a secure connection without opening your router. These services assign you a temporary address that forwards to your local server. They're slower than direct port forwarding but simpler to set up and safer if you're concerned about security.
Is it safe to share my public IP address?
Sharing your public IP with friends for Minecraft is generally safe, especially if you're only opening port 25565. However, don't share it publicly on forums or social media. If you're concerned about security, use a tunneling service instead, or set up a whitelist in your Minecraft server settings so only invited players can join.