How-To:CreatePublicNodeAmazonAWS

From Nxt Wiki
Jump to: navigation, search
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎Nederlands • ‎português do Brasil • ‎русский • ‎українська

Follow these steps to create an Amazon AWS VPS that hosts a Nxt server. Amazon will give you access to a server for free for 1 year, but be aware that there is a cap on network bandwidth. After your server passes this limit, you will be billed for extra data transfer.

Note 1: DO NOT USE THIS VPS FOR REAL MONEY ACCOUNTS!! Use it only for the benefit of putting more nodes on the network.

Note 2: This procedure was originally created by BaiMangal in this Bitcointalk forum post. If it is of value, track him down and send him some Nxt!)

Note 3: This procedure assumes you are running Windows. You can follow these steps if you are another platform, but you may have to modify some things for your environment.

1 Part 1: Set up a Windows server on Amazon AWS for running Nxt

Follow the steps outlined in each of these screen captures (click each one to see a larger version):

1
AWS STEP1
2
AWS STEP2
3
AWS STEP3
4
AWS STEP4
5
AWS STEP5
6
AWS STEP6
7
AWS STEP7
8
AWS STEP8
9
AWS STEP9
10
AWS STEP91
11
AWS STEP92
12
AWS STEP93
13
AWS STEP94
14
AWS STEP95
15
AWS STEP96
16
AWS STEP97
17
AWS STEP98
18
AWS STEP99

2 Part 2: Create firewall rules for accessing the server

After you create and connect to the VPS using the remote desktop shortcut, you need to set up Firewall Rules on the Server to allow everything for Nxt. Here are the steps (click each one to see a larger version):

1
AWS VPS1
2
AWS VPS2
3
AWS VPS3
4
AWS VPS4
5
AWS VPS5
6
AWS VPS6
7
AWS VPS7
8
AWS VPS8

3 Part 3: Configure the client

It is highly suggested to run a client version 0.9.0 or older. The following steps are only valid for versions after the 0.8.0.

  • First, you need to find out the IP of your server. It should be mentioned in the background image once you log in. If it is not, go to the Amazon AWS console and on the top right select the region where you set up your VPS. If you do not know this information simply click all the available options until one of them mentions "1 Volume" under "Resources" in the middle of the page.
  • Download the latest Nxt client. Unzip it. Create an empty file under the folder "conf" and write the following:

# Hosts from which to allow NRS user interface requests, if enabled
nxt.allowedUserHosts=127.0.0.1; localhost; VPS_IP_HERE; 0:0:0:0:0:0:0:1;
# Hosts from which to allow NRS user interface requests, if enabled.
nxt.allowedUserHosts=127.0.0.1; localhost; VPS_IP_HERE; 0:0:0:0:0:0:0:1;


make sure you modify VPS_IP_HERE accordingly.

  • Save the file as nxt.properties
  • By default Java is not installed, therefore you should download and install it before running the client.
  • Now you can double-click the run.bat launcher.
  • Make sure you disconnect from your VPS by clicking the "X" of the window, this is the only way to make sure it will keep running remotely. In fact, if you shut down or logout, it will also do that remotely.