Web apps work on port 8080 but not 80

  1. 3 months ago

    Dean D

    May 28 Pre-Release Testers, Xojo Pro Santa Ynez California

    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.

    @Albin Kiland Something else is probably running on port 80 already :)

    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

  2. Albin K

    May 28 Europe (Sweden)

    Something else is probably running on port 80 already :)

  3. Rick A

    May 28 Answer (Brazil. GMT-3:00)
    Edited 3 months ago

    @Albin Kiland Something else is probably running on port 80 already :)

    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

  4. Dean D

    May 28 Pre-Release Testers, Xojo Pro Santa Ynez California

    Thank you Rick

or Sign Up to reply!