From Nxt Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎Nederlands • ‎português do Brasil • ‎русский • ‎українська

Setting up a public Nxt node on a VPS or dedicated server

NOTE: this is an advanced operation, and is not a suitable activity for people who are uncomfortable with Linux, networking concepts, or command-line interfaces. Following these steps implies that you are willing to pay a monthly fee to a service provider who will host your Nxt node. If you do not know what an IP address is or do not know how to use a command-line text editor, this is probably not for you. Read all of these instructions and make sure you understand them before you decide to proceed. You can still contribute to the network by running Nxt on your local computer.

  1. Sign up for a VPS (Virtual Private Server) with a provider like These instructions assume you are using DigitalOcean, but other providers are similar and offer their own "help" documentation for setting up a server.
  2. Once signed up you can fund your account
    • $5 covers 1 month of computing for 1 server, with a small amount of storage and RAM. This is sufficient, but not ideal
    • the $10 monthly plan, with 1 GB RAM VPS, is better and more stable
  3. Create your first droplet
    1. Set the hostname to whatever you like
    2. Select thee $5 or $10 a month option
    3. Select "Debian 7.0 x64" which is Debian under the Linux Distributions tab

Once created, you will receive an email with the IP address, username (should be 'root'), and password. You are now ready to connect to your new server, and set up Nxt.

  1. If you are on Windows, download Putty ( ) and use it to connect to your VPS.
    • If you are on a Mac, you can use your Terminal application, which is built in to MacOS
    • If you are on any UNIX system, you can use any shell
  2. Connect to your VPS
    1. If you are using putty, open it. Input the IP Address from the email into the Host Name field and select open.
    2. If you are using Terminal or a UNIX shell, use ssh to connect to your server by typing ssh {IPAddress}, where {IPAddress} is the address of your VPS
  3. Input the commands to setup your server
    • NOTE 1: These steps will set up your Nxt node to run as 'root'. This is risky, since anyone who compromises this account will get full access to your VPS. It is better to set up a separate user account to run your Nxt node. Setting up a user account is outside the scope of this How-To... but if you do not know how to set up a user account, this whole thing may be a Bad Idea for you.
    • NOTE 2: These steps make reference to a download link for the NRS software. The current version is 1.9.2, and is available from You can verify that the software is authentic by checking its SHA256 hash value, which is
      (source: Developers Release) - How to verify SHA256 checksums.
    1. The first step is to login. Just enter the username from the email (most likely root). Then enter (or copy and paste). Now you're ready to run these commands:
      1. sudo apt-get update
      2. sudo apt-get install openjdk-8-jre nano (If openjdk-8 is not available on Debian, get it here:
      3. wget
      4. unzip
        • NOTE: The exact filename may not be, depending on the version. The filename is the same as in the download link.
      5. pico nxt/conf/
        • "pico" is the name of a text editing utility. If you do not have pico on your system, try "nano".
      6. write these lines, where X.X.X.X is the IP address of the host:
        • nxt.myAddress=X.X.X.X
        • nxt.allowedBotHosts=; localhost; X.X.X.X; 0:0:0:0:0:0:0:1;
        • nxt.allowedUserHosts=; localhost; X.X.X.X; 0:0:0:0:0:0:0:1;
      7. press CTRL+X and then Y to save the file.
      8. cd ~/nxt
      9. nohup ./ &
      10. exit
  4. open http://ipaddress:7876 in your browser to verify NXT is running ok. Your browser will give you a security certificate warning; this is normal. Click confirm to proceed. Your node is up and running!
  5. You should create a hallmark for your node. Read our hallmark FAQ, and then see these instructions.

Additional Tools

These tools have been created by the community and may help you manage your node:

  • (for generating a random list of well-known peers you can put in your file)
  • provides information and statistics on public servers that are running Nxt
  • nxtcoinbox offers a simple shell script for setting up and deploying a node on a Linux server
  • for automated management of up to thousands of VPSs. Advanced linux/ansible.

Public Node from your home

Running a public server on your home system is similar to running an accessible peer-to-peer node on services such as napster (r.i.p.), emule, bittorrent, bitcoin, etc. So if you want to run a public server at your home (warning, you could potentially see a big traffic utilization happen), then unless you have uPNP on your home router set up, you must open a specific port (7874 for NXT) to incoming TCP traffic on your router and forward it to your computer that runs the NXT java software, and also open the same port on your computer's internal firewall. You also must edit a well-hidden configuration file, nxt/conf/, to insert your home internet connection's public IP address (from, for example, as the value of parameter myAddress. And if your IP number changes, you need to re-edit the file. Or if you upgrade the client you will also have to redo these edits to

Preferably, you should obtain a free dynamic dns domain name from for example, set up the NOIP automatic update client to run at boot time on your system, and set myAddress to your name, such as In all cases, you need to save the file, so that when you upgrade NXT NRS client, you can then copy it back over the default file after unzipping an upgraded client.

Retrieved from ""