Private server installation on AWS EC2 Instance

From Screeps Wiki
Revision as of 21:15, 13 February 2017 by Aberk (talk | contribs) (Initial add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Setup Amazon Web Services EC2 with Node JS

Follow this guide to install Node 6.5.0: http://iconof.com/blog/how-to-install-setup-node-js-on-amazon-aws-ec2-complete-guide/


Open Ports 21025 – 21028 in AWS Console

  • Go to the "Network & Security" -> Security Group settings in the left hand navigation
  • Find the Security Group that your instance is using
  • Click on Inbound Rules
  • Use the drop down and add Custom TCP Rule (port 21025 - 21028)
  • Click Apply and enjoy


Resize your instance:

A t2.medium EC2 instance (2 CPU's and 4GB RAM) runs the game quickly, while t2.micro was noticably sluggish.

  • Using AWS Management Console:
  • Right-Click on the instance
  • Wait...
  • Instance Management > Change Instance Type

Start Screeps Server

In an SSH command window, run the following:

sudo su
npm install -g screeps
screeps init
nohup screeps start &

You will be prompted for your Steam Web API key, you can obtain it on this page.

Restarting the Server

If you need to restart your server for some reason, or the process ends, simply re-run the start command:

sudo nohup screeps start &

Profit!

That's it! Close your SSH connection and exit your terminal. You can now connect to your EC2 instance's IP address @ port 21025 using a Steam client.