Back to Minecraft

Enable Offline Mode

Learn how to enable offline mode in your Minecraft server to allow players without premium accounts to join.

Minecraft
saan.dev
3 min read
...

What is Offline Mode?

Offline mode (also known as "cracked" mode) disables Mojang's authentication system. When enabled, players can join your server using any username, even if they don't own a legitimate Minecraft account. This is the opposite of online mode, which requires players to authenticate with Mojang's servers.

Note

Offline mode is useful for testing, LAN play, or private servers where you want to allow players without premium accounts to join.

Important Security Considerations

Security Warning

Before enabling offline mode, consider the following:

  • Security Risk: Without authentication, anyone can use any username, including impersonating other players
  • No Account Verification: You cannot verify if a player owns a legitimate Minecraft account
  • Plugin Protection: Consider using plugins like AuthMe or similar to add your own authentication layer
  • Server Type: Offline mode is typically used for private servers, testing, or educational purposes

How to Enable Offline Mode

Step 1: Access Your Server Files

  1. Log in to your panel
  2. Navigate to your Minecraft server
  3. Open the File Manager or connect via FTP
  4. Locate your server's root directory

Step 2: Open server.properties

  1. Find the server.properties file in your server's root directory
  2. Click on it to open the file editor, or download it to edit locally

Step 3: Modify the Online Mode Setting

  1. Look for the line that says online-mode=true
  2. Change it to online-mode=false

The file should look like this:

# Enforces players to have a valid Mojang account
online-mode=false

Step 4: Save and Restart

  1. Save the server.properties file
  2. Restart your Minecraft server from the panel
  3. Wait for the server to fully start (check the server console)

Step 5: Verify the Change

  1. Check your server console for any errors
  2. Try connecting to your server with a test account
  3. If successful, offline mode is now enabled

Offline mode is now enabled! Players without premium accounts can now join your server.

Additional Configuration Options

While you have server.properties open, you might want to configure these related settings:

  • enforce-whitelist: Set to true to only allow whitelisted players
  • white-list: Set to true to enable the whitelist feature
  • max-players: Set the maximum number of players allowed

Troubleshooting

Server Won't Start

If your server fails to start after making this change:

  1. Check the server console for error messages
  2. Verify the syntax in server.properties is correct
  3. Ensure there are no extra spaces or special characters
  4. Try reverting the change and restarting to confirm the file isn't corrupted

Players Still Can't Join

If players are still unable to join:

  1. Verify the server has fully restarted
  2. Check that online-mode=false is saved correctly
  3. Ensure your server's firewall allows connections on the correct port
  4. Check if any plugins are blocking connections

Important

If you're still experiencing issues after following these steps, check your server logs for specific error messages that may indicate the problem.

Reverting to Online Mode

To switch back to online mode:

  1. Open server.properties
  2. Change online-mode=false back to online-mode=true
  3. Save and restart your server