Minecraft Java Edition · Complete Guide to LAN Multiplayer
1. What is SakuraFrp?
SakuraFrp is a free intranet penetration tool that maps your local Minecraft LAN server on your computer to the public internet, allowing friends from outside your local network to connect directly via an IP address.
Core Advantages
- Free Quota: Daily check-ins give you traffic; free users can use 2 tunnels.
- Simple Operation: Graphical interface, no command line required.
- Full Version Support: Covers most LAN multiplayer games.
- Multiple Node Options: Multiple domestic nodes available for low latency.
- High Stability: More stable than P2P solutions, suitable for multiplayer sessions.
2. Preparation
2.1 Account Registration and Real-Name Verification
Visit the SakuraFrp official website: https://www.natfrp.com/
- Click "Register Account" in the top right corner.
- Fill in your username, password, and email to complete registration.
- After logging in, go to "User" → "Real-Name Verification".
- Complete the real-name verification (a 1 RMB verification fee is required).
⚠️ Note: Users under 18 cannot use the SakuraFrp service. Real-name verification is mandatory; otherwise, you cannot create tunnels.
2.2 Download and Install the SakuraFrp Client
- Go to the official website, click "Services" → "Software Download" in the top menu.
- Download the version corresponding to your operating system (Windows/macOS/Linux).
- Run the installer and complete the installation using default settings.
2.3 Log in to the Client
- Open the SakuraFrp software.
- Go to "Settings" → "Account" → "Access Key".
- Copy the access key from the website under "User" → "User Info" → "Account Info".
- Paste the key into the client and click "Login".
3. Detailed Multiplayer Steps (No Mod Solution)
This applies when all players have official accounts or use skin site accounts. If there are offline players, see Chapter 4 for installing helper mods.
3.1 Start a Minecraft LAN World
- Launch HMCL or another launcher and enter the game.
- Enter the save file you want to share.
- Press ESC → Click "Open to LAN".
- Set whether "Allow Cheats" is enabled, then click "Create LAN World".
- The chat box will display "Local game started on port XXXXX". Remember this port number.
3.2 Create a SakuraFrp Tunnel
- In the SakuraFrp client, click the "+" button in the top left corner.
- Select "Node": It is recommended to choose the node with the shortest physical distance.
- Tunnel Type: Select "TCP Tunnel".
- Local IP: Enter "127.0.0.1".
- Local Port: Enter the port number shown in the game chat box (if forgotten, you can check the launcher logs).
- Tunnel Name: Enter anything, e.g., "Minecraft Multiplayer".
- Click "Create".
3.3 Start the Tunnel and Share the Connection Address
- Find the newly created tunnel in the tunnel list and click the "Start" button.
- Open the "Logs" page and wait for the connection success message.
- The log will show something like "Use >>frp-xxx.com:xxxxx<< to connect to your tunnel".
- Copy this address and send it to the friends you want to play with.
⚠️ Important Reminder: When sending the address, make sure to use an English input method! Chinese punctuation marks (colons, periods) will cause connection failures.
4. Detailed Multiplayer Steps (With Non-Official Players)
If any of the players you are connecting with use offline accounts (non-official), you need to install a helper mod to disable online mode verification. Otherwise, you will encounter the "Failed to login: Invalid session" error.
4.1 Install Helper Mod
It is recommended to use LAN World Plug-n-Play (mcwifipnp) for the best compatibility.
- Download the mod (supports Forge/Fabric/Quilt/NeoForge 1.15.2 ~ 1.21.11).
- Place the downloaded .jar file into the game's mods folder.
- Launch the game and enter the save file you want to share.
- Press ESC → Find the "Open to LAN" button and click it.
- In the settings interface, find the "Online Mode" option and turn it off (allowing offline players to join).
- Click "Open to LAN". The chat box will display a fixed port number.
4.2 Create Tunnel (Same Steps as Above)
Enter the port number obtained in the previous step into the "Local Port" field of the SakuraFrp client. All other steps are exactly the same as in Chapter 3.
⚠️ Warning: Switching the online mode verification will change the player's UUID, which may result in the loss of inventory items and player data! Please back up your save file first.
5. How Friends Join the Game
- Your friends also need to download and launch Minecraft Java Edition.
- After entering the game, click "Multiplayer" → "Add Server".
- Paste the frp-xxx.com:xxxxx address you sent into the Server Address field.
- Click "Done", then select that server to join.
- Once successfully connected, your friends will be able to see your world!
6. Frequently Asked Questions
Q1: What should I do if I see "Please check if the local service is accessible"?
- Confirm that you have started the LAN world and can see the port number prompt in the game.
- Check if the Local IP in SakuraFrp is set to 127.0.0.1.
- Try changing the local port to 25565 (the default MC port).
- Ensure you and your friend are not on the same local network (if you are, just use the local IP directly).
Q2: How to fix lag/high latency after successful connection?
- Try changing the node: Choose a node with the same ISP as your friend or one that is geographically closer.
- Check host performance: Use the debug screen (F3) to see if ms ticks exceed 50ms.
- Lower game settings: Reduce render distance and simulation distance.
- Check network bandwidth: Ensure sufficient upstream bandwidth (at least 1 Mbps per person is recommended).
- Speed limits may apply during peak hours; try playing during off-peak times.
Q3: What are the limitations of the free version of SakuraFrp?
- Speed limit of 10 Mibps (relatively low bandwidth).
- Maximum of 2 tunnels.
- 5 GiB of traffic per month (extra traffic can be obtained via daily check-ins).
- It is basically sufficient for light multiplayer sessions (3-5 people).
Q4: Why do I get "Failed to login: Invalid session" during multiplayer?
This happens because some players are using non-official (offline) accounts, but the server has online mode verification enabled. You need to install a helper mod and turn off "Online Mode" (see Chapter 4 for details).
Q5: How to set up SRV records to make the address look nicer?
SRV records allow you to connect using a domain name like mc.example.nyat.app without entering the port number. For specific setup methods, please refer to the official SakuraFrp documentation.
7. Quick Review
Overall Process:
- Register a SakuraFrp account → Complete real-name verification (1 RMB).
- Download and install the SakuraFrp client → Log in.
- Enter MC save file → ESC → Open to LAN → Remember the port number.
- Create a TCP tunnel in SakuraFrp → Enter the port number from the previous step in "Local Port".
- Start the tunnel → Copy the frp address from the logs → Send it to friends.
- Friends add a server in MC → Paste the address → Join the game.
Enjoy multiplayer gaming with your friends!
Tutorial compiled from SakuraFrp official documentation · https://www.natfrp.com/