Bind: Permission Denied

I’m deploying this GitHub project:
https://github.com/CalTricks/webcal-proxy/tree/main

Build Command:

cd cmd/webcal-proxy && go build -o app

Start Command:

./cmd/webcal-proxy/app

The above works locally, but I’m seeing the following error on Render:

==> Starting service with './cmd/webcal-proxy/app'
time="2022-07-09T23:31:55Z" level=error msg="listen tcp 0.0.0.0:80: bind: permission denied"

I can specify different sockets using -addr, but I get the same error for those too.

What am I doing wrong?

Hi there,

Thanks for reaching out.

The standard HTTP/S ports on a service will be reserved, i.e. 80/443. You could read the PORT env var to use the default port (10000) for Render Web Services or set your own, which it appears you have, as I’m seeing the last deploy as successful.

Please let us know if we can assist any further.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.