Difference between revisions of "Tutorials/Setting up a server"

(Rewrote the entire tutorial for clarity and simplicity. The Java instructions are already in the Installation Guide. Mostly copied over from my own edit on starmade.wikia.com.)
Line 1: Line 1:
 
This tutorial will show you how to '''set up your own server''' that is included on every installation of [[StarMade]] free of charge. The server may be installed on Windows, Mac, and Linux operating systems. The software is available in the client found here at the download [http://star-made.org/download| page]. There is no current custom server software to run a StarMade server.
 
This tutorial will show you how to '''set up your own server''' that is included on every installation of [[StarMade]] free of charge. The server may be installed on Windows, Mac, and Linux operating systems. The software is available in the client found here at the download [http://star-made.org/download| page]. There is no current custom server software to run a StarMade server.
  
== Basic Server ==
+
==Hosting for Players on Your Own Network (LAN)==
The basic server is for small private servers
+
'''On the computer where the StarMade server will be hosted:'''
----
+
#[http://www.computerhope.com/issues/ch000483.htm Find your LAN IP address]
=== Windows ===
+
#The <code>192.168</code> will be the same, but the last two numbers will be different. Give this full LAN IP address to the other people connecting to your computer
==== Verify and install the latest version of Java ====
+
#Run StarMade and select '''Start Dedicated Server'''
# Make sure that you have Java 7 installed. To do this, we first need to open up a command (CMD) window.
 
# In Windows XP/Vista/7, whilst holding the Windows key down, press R to open the Run dialog. Type <code>cmd</code> and press enter.
 
#* Once the command prompt has opened, enter the following command, followed by the enter key:<br /><code>java -version</code>
 
#* Java should display its version, which should read "Java version 1.7"
 
# If you get the error "<code>'Java' is not recognized as an internal or external command, operable program or batch file.</code>", then you may have a previous version (less than 1.6) of Java or Java may not be in your system path.
 
#For 32-bit users you can obtain the latest version here: [http://www.java.com/en/download/ Java download page]. If you use a 64-bit OS, ensure that you download the x64 Windows package.
 
#* After you have installed the latest version of Java try again with <code>java -version</code>.
 
#*: If you get an error at this point, try the following to add Java to your system path.
 
#*# Right click Computer.
 
#*# Click properties.
 
#*# Click "Advanced system settings".
 
#*# Click "Environment Variables".
 
#*# Under system variables, find the Path variable.
 
#*# Click edit, and append to the ''end'' of the value: <code>;"c:\Program Files\Java\jre7\bin"</code>. If you use 32-bit Java on a 64-bit OS use: <code>;"c:\Program Files (x86)\Java\jre7\bin"</code>
 
#*# Restart your computer.
 
#*# Now re-open the command prompt and try again.
 
  
  
Windows Vista/7 users: If these steps don't work for you, open the Control Panel and search for <code>Java</code>, then click Java (32 or 64-bit). Under the Java tab, click "View...". The installed version of Java will be listed under 'Platform'.
+
'''For all other computers connecting to you:'''
==== Start the Server ====
+
#Run StarMade and select '''Start Game'''
To start the server open the client <code>StarMade-starter.exe</code>.
+
#Select the radio button beneath '''Multiplayer''' (Host:Port) and replace the current IP with the LAN IP found above. '''Be sure to keep the <code>:4242</code> at the end of the IP. This is the port.'''
#Click <u>Start Dedicated Server</u>
 
#The StarMade Server Manager window will pop up showing the recently created server.
 
#[[Tutorials/Join a StarMade server|Join the Server]] using the IP adress <code>localhost:4242</code>
 
==== Shutdown the Server ====
 
#Highlight the active server.
 
#Click <u>Shutdown Server</u>
 
==== Resetting the World ====
 
#Make sure server is shutdown.
 
#Navigate to the StarMade folder commonly <code>C:\Users\YOURUSERNAME\Downloads\StarMade</code>
 
#Under the <code>server-database</code> folder. Delete every file and folder.
 
#Restart the server.
 
----
 
=== Mac OS X ===
 
==== Install Java ====
 
Mac OS X already comes with its own version of Java that is updated automatically via Software Update (Apple menu > Software Update).
 
==== Start the Server ====
 
To start the server open the client <code>StarMade-starter.jar</code>.
 
#Click <u>Start Dedicated Server</u>
 
#The StarMade Server Manager window will pop up showing the recently created server.
 
#[[Tutorials/Join a StarMade server|Join the Server]] using the IP adress <code>localhost:4242</code>
 
==== Shutdown the Server ====
 
#Highlight the active server.
 
#Click <u>Shutdown Server</u>
 
==== Resetting the World ====
 
#Make sure server is shutdown.
 
#Navigate to the StarMade folder commonly <code>YOURUSERNAME\Downloads\StarMade</code>
 
#Under the <code>server-database</code> folder. Delete every file and folder.
 
#Restart the server.
 
== Advanced Server ==
 
{{empty section}}
 
=== Windows ===
 
{{empty section}}
 
  
===Linux===
+
==Hosting for Players over the Internet (WAN)==
{{empty section}}
+
'''On your computer:'''
 +
#Find your WAN IP address by visiting [http://www.whatismyip.com/ WhatIsMyIP.com], or Google "ip".
 +
#Run StarMade and select '''Start Dedicated Server'''
 +
For all other players, they will need to connect to you using your IP found in step #1, including <code>:4242</code>.
  
==Add your server to the official StarMade Server List==
+
==Hamachi==
Attract more players to your server.
+
Hamachi makes hosting a server for LAN or WAN players a quick process.
 +
#[https://secure.logmein.com/products/hamachi/download.aspx Download LogMeIn Hamachi] (Recommended: Unmanaged Mode)
 +
#After installation, create a new network with a name and password of your choice.
 +
#All players that you want to connect to your network must also install Hamachi, then '''Join''' your network.
 +
#* ''Note: Direct tunnels (green light) beside usernames is indicative of the strongest possible connection.''
 +
# Right-click the IP address beside the On/Off button at the top of the window and select '''Copy IPV4 Address'''.
 +
#Run StarMade and select '''Start Dedicated Server'''
 +
# You and other players must paste (CTRL+V) the IP address found in the step above into the Multiplayer section, followed by <code>:4242</code>
 +
#* eg. <code>55.123.987.11:4242</code>
  
http://starmade-servers.com/
+
==Troubleshooting==
 +
===Players can't connect ===
 +
Most likely a [http://www.computerhope.com/issues/ch001201.htm Port Forwarding] or [http://www.computerhope.com/jargon/f/firewall.htm Firewall] problem.
 +
 
 +
Should players be unable to connect to your server you can attempt changing the port that your server is running on from 4242 to something else, for example 25565. This can be done by starting the launcher, click "options" in the top-left of the launcher screen and selecting "Server port" and changing the value. I would recommend using 25565 as it is a commonly used port.
 +
 
 +
==Official StarMade Server List==
 +
Attract more players to your server by adding it to the following StarMade server list(s):
 +
 
 +
* http://starmade-servers.com/
  
 
{{StarMade}}
 
{{StarMade}}
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Revision as of 00:37, 17 July 2013

This tutorial will show you how to set up your own server that is included on every installation of StarMade free of charge. The server may be installed on Windows, Mac, and Linux operating systems. The software is available in the client found here at the download page. There is no current custom server software to run a StarMade server.

Hosting for Players on Your Own Network (LAN)

On the computer where the StarMade server will be hosted:

  1. Find your LAN IP address
  2. The 192.168 will be the same, but the last two numbers will be different. Give this full LAN IP address to the other people connecting to your computer
  3. Run StarMade and select Start Dedicated Server


For all other computers connecting to you:

  1. Run StarMade and select Start Game
  2. Select the radio button beneath Multiplayer (Host:Port) and replace the current IP with the LAN IP found above. Be sure to keep the :4242 at the end of the IP. This is the port.

Hosting for Players over the Internet (WAN)

On your computer:

  1. Find your WAN IP address by visiting WhatIsMyIP.com, or Google "ip".
  2. Run StarMade and select Start Dedicated Server

For all other players, they will need to connect to you using your IP found in step #1, including :4242.

Hamachi

Hamachi makes hosting a server for LAN or WAN players a quick process.

  1. Download LogMeIn Hamachi (Recommended: Unmanaged Mode)
  2. After installation, create a new network with a name and password of your choice.
  3. All players that you want to connect to your network must also install Hamachi, then Join your network.
    • Note: Direct tunnels (green light) beside usernames is indicative of the strongest possible connection.
  4. Right-click the IP address beside the On/Off button at the top of the window and select Copy IPV4 Address.
  5. Run StarMade and select Start Dedicated Server
  6. You and other players must paste (CTRL+V) the IP address found in the step above into the Multiplayer section, followed by :4242
    • eg. 55.123.987.11:4242

Troubleshooting

Players can't connect 

Most likely a Port Forwarding or Firewall problem.

Should players be unable to connect to your server you can attempt changing the port that your server is running on from 4242 to something else, for example 25565. This can be done by starting the launcher, click "options" in the top-left of the launcher screen and selecting "Server port" and changing the value. I would recommend using 25565 as it is a commonly used port.

Official StarMade Server List

Attract more players to your server by adding it to the following StarMade server list(s):

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis
Looking for a server?

Join Techworld - an amazing custom modpack server.