Monday, September 12, 2011

Running Several Instance of Mincrafts Server as a Service on One Computer

We have one computer that acts as our server. We wanted to run several instances of the minecraft sever: classic, standard beta, and beta with mods.

I followed the instructions (http://windowsmasher.wordpress.com/2010/12/02/how-to-install-a-minecraft-server/) and creating three seperate folders:

C:\Minecraft-Servers\Classic
C:\Minecraft-Servers\Beta
C:\Minecraft-Servers\BetaMod

Three services did get created but we were only able to connect to one of the servers.

Here is what I did to fix the issue. You actually might not need all of them but this does work:
1. Gave each minecraft server a separate port in the minecraft server.properties file
server-port=25565

2. Modified the wrapper.config for yajsw to
A. turn off the system tray: wrapper.tray = false
B. run minecraft server with noui
# Java Additional Parameters
wrapper.java.additional.1=-Xincgc
wrapper.java.additional.2=-Xmx1024M
wrapper.java.additional.3=-Xms1024M

# Adds an environment to the application
#wrapper.app.env.=
wrapper.app.parameter.1 = -classpath
wrapper.app.parameter.2 =C:\\Minecraft-Servers\\Beta\\minecraft_server.jar
wrapper.app.parameter.0 =nogui



# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
# YAJSW: all libs required by YAJSW are in the manifest of the wrapper.jar -> only classpath of your application is required
wrapper.java.classpath.1=C:\\Minecraft-Servers\\Beta\\minecraft_server.jar

# Java Application main class
wrapper.java.app.mainclass=
# or jar file
wrapper.java.app.jar=C:\\Minecraft-Servers\\Beta\\minecraft_server.jar

3 comments:

  1. Here is what I did to repair the problem. You actually might not need all of them however this does wor
    http://www.mcfactionpros.net

    ReplyDelete
  2. Nice experienced after reading your blog. Your blog contain lots of information which is beneficial for me. For further detail on minecraft servers visit MelonCube.

    ReplyDelete
  3. Best post. Valuable information has been shared. You can visit Minecraft Hosts which has very dedicated experts who can make your task more easier.

    ReplyDelete