1. Preparations
2. Initial Setup
Create a new folder and move the server core file into it.
Make a new text document and paste this line inside:
java -Xmx1024M -Xms3024M -jar XXX
Replace XXX with the full filename of your core (including the .jar extension).
Save the file, then change its file extension from .txt to .bat.
Double-click the bat file to launch the server — it will start up partially at this stage.
3. Agree to the EULA
Open the eula file and change eula=false to eula=true.
This fully enables the server. Wait for all files to finish loading, then you may type commands in the console.
Enter stop to shut down the server.
4. LAN Port Forwarding via Intranet Penetration
Your server only works on a local area network for now. You need intranet penetration for external players.
We use Natapp here; official website: https://natapp.cn
- Select TCP protocol in tunnel settings.
- The port can be the auto-assigned one. You can check or edit the port value in
server.propertiesunder the lineserver-port=(example custom port: 11451). - Fill this port number into the Natapp client.
- Copy the public IP generated by the penetration tool.
- In Minecraft, go to Multiplayer → Add Server, paste the public IP as the server address, and set any server name you like.
Share this public IP with your friends to let them join.
5. Extra Configurations
Open server.properties and switch online-mode=true to online-mode=false to disable paid account authentication, allowing offline accounts to connect.
In the server console (the bat window), run op YourUsername to grant yourself operator permissions.