Web apps work on port 8080 but not 80

I wrote two web apps to run on a Raspberry Pi. Both work if compiled for port 8080, but neither work if compiled for port 80. I’m a Windows guy so getting them to do anything on Linux has been a struggle and I suspect there is some Linux setting I am missing.

Something else is probably running on port 80 already :slight_smile:

That’s one possibility in case of you running an http service, or something… but…

Ports below 1024 are system reserved ports, you require special access to bind to them.
Set this privileged capability to you app as follows:

sudo setcap ‘cap_net_bind_service=+ep’ /usr/bin/myXojoApp

Thank you Rick