Setting up second machine with storj on same network

Hi Storj people. i managed to get one computer i have sharing with windows user interface v3 ver v1.1.1 . I am now stuck on my second machine with node offline. I tried using port 28968 for the second machine but it wont open. can i use one port for two computers ? any suggestions are much appreciated.

1 Like

Computer 1 - 28967
Computer 2 - 28967
Router Port Forwarding 28967 -> Computer 1 28967
Router Port Forwarding 28968 -> Computer 2 28967

If this make sense…

1 Like

U can not use one Port for two Computers(If U are behind a Nat Router as i assume), U have to use a different Port on one of them

1 Like

Ok, those two responses seem to contradict each other, yet they are both correct. :slight_smile:

When the outside world is trying to reach a specific node, it basically has to go through a few steps. I’m going to include docker in case you want to use it on the other system or in case someone else with a docker setup has the same question.

Single node setup

outside world => 28967 => router => 28967 => node machine [ => 28967 => docker container]

Since all the ports are the same, you can just use that port everywhere. This makes the settings easier. However, there are several places where you can adjust ports and forward ports to other ports. That will become relevant in multi-node setups

Multi-machine multi-node setup

In a multi-machine setup for example, it could look like this.

node1: outside world => 28967 => router => 28967 => node machine1 [ => 28967 => docker container]
node2: outside world => 28968 => router => 28967 => node machine2 [ => 28967 => docker container]

In this setup your router translates port 28968 to 28967 on machine2. This means machine 2 is still listening on the default 28967 port, but if the outside world wants to reach it, it has to talk to port 28968.

Single-machine multi-node setup

Only use this setup if you want to share multiple HDD’s on a single machine. There is no use in running multiple nodes on the same HDD or array.
In a single-machine setup with multiple nodes, it could look like this.

node1: outside world => 28967 => router => 28967 => node machine1 [ => 28967 => docker container]
node2: outside world => 28968 => router => 28968 => node machine1 [ => 28967 => docker container]

In this setup your router forwards both ports to the same machine without changing them. That machine than has to deal with port 28968 for node2. There are 2 options.

  1. On setups without docker, make the node2 listen to port 28968 by changing the config.yaml
  2. On docker setups change the port forward parameter in the run command for node2 to -p 28968:28967. Please note that these numbers are different, because traffic on the machine is received on port 28968 but translated to port 28967 inside the container. Because of this translation, no change in the config.yaml is necessary for these setups.

Related settings

For the second node in multi-node setups, this translates to the following settings in config.yaml:

# public address to listen on
server.address: :28967

This setting refers to the port the node is listening on.
Without docker:
outside world => 28968 => router => 28967 => node machine
With docker:
outside world => 28968 => router => 28967 => node machine => 28967 => docker container

# the public address of the node, useful for nodes behind NAT

This setting refers to where the outside world can contact the node.
outside world => 28968 => router => 28967 => node machine [ => 28967 => docker container]

Note: For docker setups, this value is set through the -e ADDRESS="" parameter in the run command.

Common mistakes

Forwarding twice

Have the router forward 28968 to 28967, but also do the same in your docker run command.
With -p 28968:28967

outside world => 28968 => router => 28967 / 28968 => node machine => 28967 => docker container

The ports that the node machine receives traffic on and docker expects traffic on no longer match, so it doesn’t go through.

Changing the port your node listens to while also translating ports

# public address to listen on
server.address: :28968

With -p 28968:28967 in docker run command.

outside world => 28968 => router => 28968 => node machine => 28967 / 28968 => docker container.

The docker container gets traffic on 28967, but the node listens on 28968.

Using the same port on the same machine for multiple nodes

Different nodes always need to use different ports. Traffic can’t go through one port and then be split up again. This is why when you use a single machine, you can’t have your router forward both port 28967 and 28968 to 28967 on the same machine, but you can use the same port on multiple machine setups. The same goes for containers with docker setups. Multiple nodes can all listen to port 28967 as long as they are in multiple containers.

In general

Mistakes usually consist of anything that breaks this chain. It’s important that in every step, the port that traffic is being sent to is also the port the next element in the chain is listening to. This can be complicated even more if people run multiple NAT setups and when firewalls get in the way. But that’s out of scope for this post.

Whoops, I ended up writing a more documentation style post. Hope it helps though.


Thank you brightsilence i will keep working to share more storage and update my progress. *pulls out all old machines and drives.

Thank you. This is exactly the detailed explanation needed.

Yaya 2nd machine online

I still don’t get port forward fully

1 Like

If you have any specific questions, please ask. Glad to see you got the node online though!

Thx for your tuto to extend capacity of a machine.
I think it is useful to extend a node when disk is full to reward the bandwidth. Routing to containers on a single machine is quite straightforward, I still have to questions :

  • do I need to setup a second identity to run the second node on the same machine
  • can I get a consolidated dashboard with the 2 nodes for utilization and earnings ?
    Thanks for your support
1 Like

Hello @Bob,
Welcome to the forum!
Absolutely yes, you must create an own identity for every node.
Running two nodes with the same identity is a fastest way to be disqualified within a hour.

The standard dashboard can show only one node’s stat
Each node should listen on own port for dashboard, so you will be able to open each dashboard independently.

Thanks @Alexey for your answer,
worked fine for me 2 ; two nodes on the same machine …
after requesting a 2nd authorization token!
All the best


I’m hoping to use the windows gui version to run on multiple computers inside my network. Is there a way to tell it to listen to a different port?

Hello @bishop ,
Welcome to the forum!

Please, take a look on this article: How to add an additional drive? - Node Operator