Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

HOW TO: Set Up a Minecraft Server


  • This topic is locked This topic is locked
104 replies to this topic

#1

Matt1557

Posted 19 June 2009 - 09:10 PM

Some people are having problems setting up their own Minecraft servers, so here's a step-by-step guide.


SETTING UP YOUR SERVER

1. Download the .zip file at http://www.minecraft...raft-server.zip and extract it to your desktop (or a different location if you like)

2. Go to that location and open the minecraft-server folder

3. Now you'll see a bunch of files. There should be 2 files called server. Open one of them. If you can't open the file, select 'Notepad' from the window that pops up. If this file is blank, open the other server file.

4. Find the line that says port=xxx, by default this is 25565. Go to http://www.portforward.com and find your router model for a step-by-step guide to forward the port. If you do not forward the port, others will not be able to join your server.

Customization
To name your server, change the name after server-name=. This is what will appear on the public server list.
To change the Message of the Day, change the text after motd=. This is what will appear when players connect to your server.
To change the amount of players allowed, change the number after max-players=. This number is how many players (including you) can be in the server at one time.

6. Save and close the server file. Now open the admins file. Add your in-game name to this file, as well as any other people that you want to be an admin, or op. Skip a line for each name. Names are not case-sensitive, but must be exact. Save and close the admins file.

7. If you want to add players from the Ban List at the Minecraft Wiki, copy and paste the list into the banned file. If you want to ban any IP addresses, copy and paste them into the banned-ip file. Banned IPs must have a / before each entry. For both banlists, each name or IP must be on its own line. Save and close the banned and banned-ip files.

8. Aaaaannnnd... you're done! Click start server to launch the server. A black command window should pop up, and soon it should display information such as the external URL. Once it shows the external URL, you can join your server through the URL in the command window (or the externalurl file) or by clicking it in the public server list.

9. To close your server, simply exit out of the black command window. The map is saved automatically, so you don't need to use the save button in the in-game menu.


UPDATING YOUR SERVER

After an update, you should update your server to the latest version. This can be done by downloading the .zip file at http://www.minecraft...raft-server.zip and opening it once it's downloaded. Now drag and drop the following files to your minecraft-server folder: minecraft-server, server (the one with your server info, not the chat log), and start server. You'll have to rewrite the server info (name, motd, etc).


If you're having trouble joining your own server, or any other problems, read through Grif's thread or Thi3f's thread.

To load a level you downloaded onto your server, replace the server_level.dat file with the new map. Save the old map somewhere else so you can load it again if you change your mind.

THE END
"Thomas". There, now this thread has a reference to Thomas.
Posted Image

Register or log in to remove.

#2

Matt1557

Posted 21 June 2009 - 01:38 AM

Added a note on updating your server.
"Thomas". There, now this thread has a reference to Thomas.
Posted Image

#3

Infinity
    Infinity

    Tree Puncher

  • Members
  • 17 posts

Posted 22 June 2009 - 08:55 PM

TLDR; Extract zip, server.properties, start_server.bat

#4

Matt1557

Posted 22 June 2009 - 11:41 PM

Basically, but people still have problems.
"Thomas". There, now this thread has a reference to Thomas.
Posted Image

#5

Punx
    Punx

    Zombie Killer

  • Members
  • 248 posts

Posted 23 June 2009 - 06:25 AM

Sticky?
Minecraft Shoutbox - http://minecraftsb.info/
Can be added to any Minecraft related website

#6

Pensketch

Posted 11 July 2009 - 04:10 PM

What's the process when using Mac OSX 10.5.7? I'm not terribly familiar with the terminal, so any help would be appreciated. In the meantime I'll keep looking over the forum to see if this has already been answered. Thanks.

#7

BinaryCyclone
  • Location: Antarctica

Posted 09 October 2010 - 06:05 PM

I realize this is quite a bump, but is there an updated tutorial on how to do this anywhere? I am using minecraft_server.exe off the downloads page.

#8

Yoda1837
    Yoda1837

    Zombie Killer

  • Members
  • 183 posts

Posted 11 November 2010 - 02:27 AM

I cant open the minecraft-server file.what do I do?

Posted Image


#9

Tgdrake10

Posted 12 November 2010 - 07:09 PM

Hey, I'm trying to set up a server so I can play with one or two of my friends, but I keep encountering an error...two actually.
1. When i try to open "minecraft-server", I get the message, "Failed to load Main-Class manifest attribute from blahblahblah"

2.When I try to run "start server", cmd prompt opens up and says "'java' is not recognized as an internal or external command, operable program, or batch file. (next line) press any key to continue."

Am I doing something wrong?

:SSSS:  :o  :D 's to whoever helps me :D
I make Minecraft videos :D http://www.youtube.c...10?feature=mhee
Pre-Indev, Son.

#10

AzureNotes

Posted 17 November 2010 - 07:03 AM

is this classic or alpha?  :Iron:  :Iron:  :Iron:  :cobblestone:  :cobblestone:  :Iron:

Best Minecraft Shooting Seshion EVER! http://www.youtube.c...h?v=GyZk1zI6ZYQ
300+ Minecraft Pixel Art Creations http://www.youtube.c...h?v=IcbRF0fdEKw


#11

Yoda1837
    Yoda1837

    Zombie Killer

  • Members
  • 183 posts

Posted 28 November 2010 - 09:22 PM

This doesn't work.After I downloaded that I got 5 viruses.I think ur just a hacker or something.

Posted Image


#12

T_Vann
    T_Vann

    Tree Puncher

  • Members
  • 20 posts
  • Location: Melbourne, Australia

Posted 03 December 2010 - 08:41 AM

Tgdrake10 said:

Hey, I'm trying to set up a server so I can play with one or two of my friends, but I keep encountering an error...two actually.
1. When i try to open "minecraft-server", I get the message, "Failed to load Main-Class manifest attribute from blahblahblah"
I believe thats because you dont actually have to run that but i could be mistaken.

Tgdrake10 said:

2.When I try to run "start server", cmd prompt opens up and says "'java' is not recognized as an internal or external command, operable program, or batch file. (next line) press any key to continue."
Follow both of these.
http://forum.ragezon... ... al-527269/
http://wiki.answers.... ... batch_file



I have a question of my own:
I have just set up my own server and when i try to join using localhost it says i have to login.
I logged in before i even was able to access multiplayer.
But to top it off the client crashed and gave this error report.

--- BEGIN ERROR REPORT a1dce528 --------
Generated 3/12/10 7:33 PM

Minecraft: Minecraft Alpha v1.2.4_01
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_22, Sun Microsystems Inc.
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 4800 Series         version 3.3.10317 Compatibility Profile Context, ATI Technologies Inc.

java.lang.NullPointerException
    at ia.a(SourceFile:396)
    at ia.a(SourceFile:140)
    at ng.a(SourceFile:123)
    at jp.a(SourceFile:221)
    at ia.a(SourceFile:39)
    at of.g(SourceFile:40)
    at net.minecraft.client.Minecraft.i(SourceFile:1001)
    at net.minecraft.client.Minecraft.run(SourceFile:595)
    at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 229897f9 ----------


Please help.

#13

GTFO. G
    GTFO. G

    Out of the Water

  • Members
  • 2 posts

Posted 19 December 2010 - 05:12 PM

Same error here:

--- BEGIN ERROR REPORT a1dce528 --------
Generated 19/12/10 17:08

Minecraft: Minecraft Alpha v1.2.6
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_22, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6800 Series version 4.0.10243 Compatibility Profile Context, ATI Technologies Inc.

java.lang.NullPointerException
	at ib.a(SourceFile:395)
	at ib.a(SourceFile:139)
	at nh.a(SourceFile:123)
	at jq.a(SourceFile:223)
	at ib.a(SourceFile:39)
	at og.g(SourceFile:40)
	at net.minecraft.client.Minecraft.i(SourceFile:1004)
	at net.minecraft.client.Minecraft.run(SourceFile:595)
	at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d14bea0c ----------

Also http://www.minecraft...raft-server.zip gives a 404 - and has done for the past few days ...

#14

aloivnevets

Posted 24 December 2010 - 06:58 PM

Tgdrake10 said:

Hey, I'm trying to set up a server so I can play with one or two of my friends, but I keep encountering an error...two actually.
1. When i try to open "minecraft-server", I get the message, "Failed to load Main-Class manifest attribute from blahblahblah"

2.When I try to run "start server", cmd prompt opens up and says "'java' is not recognized as an internal or external command, operable program, or batch file. (next line) press any key to continue."

Am I doing something wrong?

:Pig:  :Skeleton:  :Spider: 's to whoever helps me :Spider:



The same thing happened to me. You need to download the latest java, and then set it as a path. Look on the mine craft wiki and search server setup or something like that. It'll show you what to do.

#15

aloivnevets

Posted 24 December 2010 - 07:02 PM

Actually it is under "tutorials/setting up a server. :D.

Aloivnevets

#16

FooDustX
    FooDustX

    Tree Puncher

  • Members
  • 13 posts

Posted 30 December 2010 - 03:11 AM

I followed the steps correctly and when I open the start server file it shows up and says this

Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/
server/MinecraftServer
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.server.Minecra
ftServer
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.mojang.minecraft.server.MinecraftServer.  Pro
gram will exit.
Press any key to continue . . .

Help please

#17

saiyan21
    saiyan21

    Out of the Water

  • Members
  • 4 posts

Posted 30 December 2010 - 08:43 AM

GTFO. G said:

Same error here:

[code]--- BEGIN ERROR REPORT a1dce528 --------
Generated 19/12/10 17:08

Minecraft: Minecraft Alpha v1.2.6
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_22, Sun Microsystems Inc.
VM: Java HotSpot™ Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: AMD Radeon HD 6800 Series version 4.0.10243 Compatibility Profile Context, ATI Technologies Inc.

java.lang.NullPointerException
at ib.a(SourceFile:395)
at ib.a(SourceFile:139)
at nh.a(SourceFile:123)
at jq.a(SourceFile:223)
at ib.a(SourceFile:39)
at og.g(SourceFile:40)
at net.minecraft.client.Minecraft.i(SourceFile:1004)
at net.minecraft.client.Minecraft.run(SourceFile:595)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT d14bea0c ----------[/code
watch this and no this isnt my video

#18

UltimateBudgie
  • Location: Australia

Posted 30 December 2010 - 09:19 AM

Punx said:

Sticky?

There happens to already be a sticky:
viewtopic.php?f=10&t=836

However, it seems that thread deals mostly with Port Forwarding. With the consent of other Moderators, this might get stickied. But don't get your hopes up.

Quote

"Can you point to the object that represents a resilient parasite of an idea caught in the tangled nature of the subconscious human mind? Thaaaat's right!"


#19

Kitteh
    Kitteh

    Zombie Killer

  • Members
  • 199 posts

Posted 30 December 2010 - 09:43 AM

ShellOnTheBeach said:

Punx said:

Sticky?

There happens to already be a sticky:
viewtopic.php?f=10&t=836

However, it seems that thread deals mostly with Port Forwarding. With the consent of other Moderators, this might get stickied. But don't get your hopes up.

That post was a year old, but I still think we need a new tutorial post.

#20

S34N
    S34N

    Tree Puncher

  • Members
  • 17 posts

Posted 03 January 2011 - 03:01 AM

None of my friends can come on to my server even after all the port forwarding