Wednesday, December 31, 2014

Happy New Year! The public builds are now available!

I finally released a public build of the server just yesterday! Here are the steps to setup your own server:

  1. Get onto your computer that you'll be using as a server.
  2. First you'll need to find out your computers local IP address your routers local IP address. On Windows these can be found by going into the command prompt and typing in "ipconfig". What you'd be looking for is a line near the top that says something like "Ethernet adapter Ethernet", and under that a line that says "IPv4 Address". The address to the right of that is your computers local IP address. There should be another line that says "Default Gateway". This is your routers local IP address. You might want to write these down for this next part. I've attached an image of what that would look like for me.
  3. Next you'll need to setup port 27015 on your router that's connecting that computer to the internet. To do this you'll probably want to look into your user manual, but most routers can be accessed by typing in the routers local IP address into your web browser (usually that's http://192.168.1.1/) This should bring up a prompt asking for a username and password. Type those in and press "Ok."
  4. You should be in your routers setup page. You'll need to find a link that says "port forwarding" or maybe "applications and games". I've attached an image of what my routers home page looks like and what link I'd need to click.
  5.  On that page you'll need to setup a port where both the internal and external port number is the same. TCP will work for the protocol, but I'd recommend just setting it to "Both". The most important part is setting the IP address for this port - you need to put in the last part of your computers local IP address. Finally, make sure the port is enabled then hit "Save Settings".
     
    If your computers local IP address changes (which can happen since it's automatically assigned), you'll need to do steps 1 through 5 again.
  6. You're almost ready! Next you will need to download the TSSSFgame content, if you haven't already. This can be done through this repository. I'd recommend cloning the repository using Git so you can easily and quickly download future updates, but you don't need to - there's a button on the lower-right of the page just below "Clone In Desktop" that says "Download ZIP" which will give you everything you'll need.
  7. Once you've downloaded everything, go ahead and open the file called "RUN_SERVER.bat" in Notepad (or some other simple text editor) and make sure that the third line is the same as the file-name for the server executable. If it's wrong, go ahead and change it and then save.
  8. Finally, to run the server just run "RUN_SERVER.bat." This will bring up a command prompt window, this will let you know about the servers status. You might be wondering why you wouldn't just run the servers executable - the reason is that the server executable is setup to close every 5 games. The .bat file is setup to automatically re-run the executable anytime it closes (or crashes, which can happen).
  9. The next part is to go and find out what your internet IP address is. This is the address other people will need to connect to your server. There are plenty of services online that can give you this address. My recommendation is using IP Chicken. You will need to give this address plus your port number (in this case it's going to be 27015) to other people, which they'd type into the TSSSFgame connect screen. Once people know your address, you're done!

No comments:

Post a Comment