devenv
devenv copied to clipboard
Services using port below 1024 need to request permissions
On macOS it's automatic, but on linux we need the user to run one of the two:
- sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0
- sudo setcap CAP_NET_BIND_SERVICE=+eip <binary>
The command sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0 works but caddy asks for the password when trying to run the unprivileged port. (which is a bit odd because "honcho" does not ask for it.