The fastest way: give them your IP address and world name
The simplest way to let friends join your Minecraft Java world is to open your world to LAN (Local Area Network) and share your computer's IP address with them. This works if you and your friends are on the same home network or connected to the same WiFi. When you do this, Minecraft generates a port number automatically — you give your friends both the IP address and the port, and they can connect directly from their multiplayer server list.
To open your world to LAN, load your world, press Escape, and look for "Open to LAN" near the bottom of the pause menu. Click it. A message will appear showing your IP address and port number — write both down exactly. Your friends then open Minecraft, click Multiplayer, Add Server, and enter the IP address and port in the format 192.168.1.100:12345 (your actual numbers will be different). They can then join whenever your world is running and you have LAN open.
Key Takeaways
- Opening to LAN is the fastest method if everyone is on the same WiFi network, and requires only your IP address and port number.
- If friends are outside your home network, you need to run a dedicated server or use a hosting service, because Java Edition does not have built-in cross-network multiplayer like Bedrock does.
- Port forwarding on your router lets remote friends join your world directly, but exposes your computer to security risks and requires your router to support it.
- Server hosting services like Aternos or Nitrado handle the technical setup and let you invite friends without touching your router or running a server on your own computer.
Port forwarding if you want friends outside your home network
If your friends are not on your home WiFi, you can use port forwarding to let them connect to your world from anywhere. Port forwarding tells your router to send incoming traffic on a specific port directly to your computer. You will need to log into your router's settings (usually through a web browser or an app), find the port forwarding section, and create a rule that forwards an unused port to your computer's IP address on port 25565, which is Minecraft's default port.
The exact steps depend on your router model — search for "[your router brand] port forwarding" to find the right menu. Once port forwarding is set up, your friends use your public IP address (not your local one) to connect. You can find your public IP by searching "what is my IP" in a browser. Give your friends your public IP and the port you forwarded, and they add it as a server the same way as the LAN method.
Port forwarding works, but it opens your computer to the internet in a way that can create security problems if your firewall is not configured correctly. Most players who want remote friends to join use a hosting service instead, which handles the networking without exposing their home computer.
Using a server hosting service like Aternos or Nitrado
A hosting service runs your Minecraft world on their servers instead of your computer, so your friends can join without you needing to forward ports or keep your computer running. Aternos is free and popular with casual players — you create an account, start a new world or upload an existing one, and share a server address with your friends. The server shuts down after a period of inactivity to save resources, but you can restart it anytime from the Aternos dashboard.
Nitrado, Apex Hosting, and other paid services offer more control and faster performance, but cost money per month. With any hosting service, you log in, configure your world settings, add your friends' usernames to the allowlist (or leave it open if you want anyone to join), and give them the server address. They connect through the multiplayer menu just like any other server.
Hosting services are the most reliable option for friends in different locations, and they remove the burden of managing your own server software or exposing your home network.
Setting up an allowlist so only your friends can join
By default, anyone who has your server address can join your world. To restrict access to only the people you invite, you need to enable the allowlist and add their usernames. If you are running the world on your own computer with LAN or port forwarding, press Escape in-game, go to Server Settings, and toggle the allowlist on. Then use the command /whitelist add [username] for each friend, replacing [username] with their actual Minecraft username.
If you are using a hosting service, the allowlist is usually a setting in the web dashboard — you paste in usernames or toggle the allowlist on and off without needing to type commands. Check your hosting service's documentation for the exact location, as it varies by provider. Once the allowlist is on, only the players you add can join, even if they have the correct server address.
Troubleshooting when friends cannot connect
The most common reason friends cannot join is that they are using the wrong address or port. Double-check that you gave them the exact IP and port — even one digit wrong will prevent connection. If you are using LAN, make sure your world is actually open to LAN (check the pause menu), and that everyone is on the same WiFi network. If you are using port forwarding, verify that the rule is actually active in your router settings and that you gave them your public IP, not your local one.
If friends get a "Connection refused" or "Connection timed out" error, the server may not be running or reachable. If you are using a hosting service, check the dashboard to confirm the server is started. If you are running it on your computer, make sure the world is loaded and LAN is open. If friends get a "You are not allowed to connect to this server" message, check that their username is on the allowlist (if you have one enabled) and that the allowlist is actually turned on.
Uploading an existing world to a hosting service
If you already have a world you want to play with friends, you can upload it to a hosting service instead of starting fresh. In Aternos, click "Create" and select "Upload World," then choose the world folder from your computer. The world folder is usually in your .minecraft directory — on Windows, that is C:\Users\[your username]\AppData\Roaming\.minecraft\saves, and on Mac it is ~/Library/process Support/minecraft/saves. Select the folder for the world you want to upload, and Aternos will handle the rest.
Other hosting services have similar upload options, usually in a "Worlds" or "Files" section of the dashboard. Uploading can take a few minutes depending on the world size. Once it is done, your friends can join and see everything you have already built.
Frequently Asked Questions
Can I invite friends if I am playing on a cracked or pirated copy of Minecraft?
No. Minecraft Java Edition requires a legitimate account to join multiplayer servers or worlds. If you or your friends are using cracked copies, you will not be able to use any of these methods. Everyone needs to own a copy of Minecraft Java Edition through the official launcher.
Do I need to pay for a server to play with friends?
No. LAN and port forwarding are free if everyone is on the same network or you are willing to set up port forwarding yourself. Aternos is also free, though the server shuts down when no one is playing. Paid hosting services cost money but offer better performance and uptime.
What is the difference between Minecraft Java and Bedrock multiplayer?
Bedrock Edition (the version on Windows 10/11, consoles, and mobile) has built-in cross-platform multiplayer through Realms, which is simpler to set up. Java Edition does not have this feature, so you need LAN, port forwarding, or a hosting service. The two editions cannot play together.
Can I invite friends if my internet is slow?
Yes, but the game may lag for everyone. LAN works fine on slow internet because it does not use your internet connection — it uses your local network. If you are using port forwarding or a hosting service, slow upload speed on your internet will cause lag. Hosting services are usually more stable than running a server on your home computer with slow internet.
What happens to my world if I stop paying for hosting?
Most hosting services let you read your world before your subscription ends. Log into the dashboard, find the world files or backup section, and read the world folder. You can then upload it to a different service or run it on your computer with LAN or port forwarding.