Zeronet: Setting a port number below 1024

Created on 20 Feb 2020  Â·  7Comments  Â·  Source: HelloZeroNet/ZeroNet

It prevents ZeroNet from working.

You have to change the port number under ZeroNet.conf back to one that's above 1023 to make ZeroNet work again.

enhancement

Most helpful comment

Let me make a guess: port 1023 doesn't work while 1024 does. The reason is that Linux-like OSes disallow non-root to use ports below 1024. If you want to bind to those ports, check this SO thread.

All 7 comments

What OS are you using?

Do you see any error on the startup?

Both Linux and Android, Py3, latest revision.

Styromaniac-notifications@github.com
Sent from iPhone

El 20/02/2020, a las 9:48 a. m., notifications@github.com escribió:


It prevents ZeroNet from working.

For instance, 8080, 8081 or the like is fine, but 443, 80 and 22 are not. Three d gifts and below prevent ZeroNet working. You have to change the port number under ZeroNet.conf back to a four digits+ port number to make ZeroNet work again.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Let me make a guess: port 1023 doesn't work while 1024 does. The reason is that Linux-like OSes disallow non-root to use ports below 1024. If you want to bind to those ports, check this SO thread.

Let me make a guess: port 1023 doesn't work while 1024 does. The reason is that Linux-like OSes disallow non-root to use ports below 1024. If you want to bind to those ports, check this SO thread.

ZeroNet needs to tell the user that those numbers below 1024 are invalid.

You're exactly right. I tested 1024 and 1023. The results are what you expected.

ZeroNet needs to tell the user that those numbers below 1024 are invalid.

They are not invalid. It's just OS that prevents non-root programs to use them.

If you run ZeroNet as root (or use options that @imachug linked), ZeroNet should work with any port.

ZeroNet needs to tell the user that those numbers below 1024 are invalid.

They are not invalid. It's just OS that prevents non-root programs to use them.

If you run ZeroNet as root (or use options that @imachug linked), ZeroNet should work with any port.

Then a warning and recommendation to avoid the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DaniellMesquita picture DaniellMesquita  Â·  3Comments

imachug picture imachug  Â·  3Comments

unsystemizer picture unsystemizer  Â·  4Comments

BenMcLean picture BenMcLean  Â·  3Comments

iShift picture iShift  Â·  3Comments