Using a static IP address

Welcome,

I have just recently found out about storj and wanted to host a node with my idle servers.
My ide servers all have static IP addresses assigned to them so I don’t need port forwarding.
Let’s say my IP address is 123.123.123.123

Now to run the node do I modify the startup docker command like this or how else?

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967 \
    -p 123.123.123.123:14002:14002 \
    -e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
    -e EMAIL="user@example.com" \
    -e ADDRESS="123.123.123.123:28967" \
    -e STORAGE="510GB" \
    --mount type=bind,source="<identity-dir>",destination=/app/identity \
    --mount type=bind,source="<storage-dir>",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

Or maybe in another way, if yes then how?

Hello and welcome. I just stumbled across your words and wanted to make clear: Storj is not mining.

1 Like

Post has been corrected.

I think this looks good.
Of course the mount paths need to lead to your real paths.
And AFAIK is you open port 14002 to the internet there is no access control, so any body could enter your web dashboard.

Does your node not start with the command you have posted?

Didn’t even start it yet. For now, clarifying everything and starting it, and btw
if I exchange this -p 123.123.123.123:14002:14002
to this -p 10.0.0.240:14002:14002 \
only the dashboard will appear on local IP and not public IP but everything else will work?
I can easily set up a tunnel between the server and my internet connection.

It should work with a private IP yes.
There was a tutorial how to make the dashboard work with a public IP and access security. Let me check if I can find it again.

Edit: I even had bookmarked it: Accessing the GUI dashboard externally - A quick How-to Guide

Hello @skorupion ,
Welcome to the forum!

You also can use this guide to access your dashboard externally without complicated setup: How to remote access the web dashboard - Node Operator