Zeronet: [Question] Can run more than one ZeroNet instance?

Created on 23 Sep 2018  路  18Comments  路  Source: HelloZeroNet/ZeroNet

All 18 comments

It can if you set different data folders and port (via CLI arguments).

What are those CLI args to set different port?
Regarding data folder, it isn't needed, since run it from different ZeroNet installations.

--uiserver_port=1234

But isn't uiserver to make it accessible via LAN?

No, it's fileserver.

What port you recommend, that is less probably to be used?

7832.

Do we need a kind of the duplicate of the Zeronet directories, or just execute the same zeronet.py?

I'm asking this because I'll create a app framework for ZeroNet based on Electron/Cordova, for dedicated apps (replacing ZeroHello to the app zite, and only storing ID providers.

It just needs different ui-server and file-server port

@blurHY , Any possibility to have different tor IP address for each instance??

My main process : $ ./ZeroNet.sh --tor always --tor_controller 127.0.0.1:9151;
error msg: None.

Additional instance : $ ./ZeroNet.sh --ui_port=8090;
error msg: Can't open lock file, your ZeroNet client is probably already running, exiting... ([Errno 11] Resource temporarily unavailable)

You need two zeronet folders

@blurHY , that's the answer what I wanted! :100:

You can, but you need to specify unique values for data_dir, log_dir, fileserver_port, uiserver_port

Why need to specify data_dir, log_dir, if ZeroNet instance could detect from which folder it is running?

Also, when detecting that another instance is running, run fileserver/uiserver ports with increased number.

Changing data_dir and log_dir is only necessary if you try to run it from the same directory (using the same binary). I think silently running it on different port would be a bad idea as most of the users don't want to run multiple instances.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenMcLean picture BenMcLean  路  3Comments

yurkobb picture yurkobb  路  3Comments

blurHY picture blurHY  路  3Comments

ghost picture ghost  路  4Comments

trenta3 picture trenta3  路  3Comments