[Libwebsockets] Default port 80/443
jackybek at gmail.com
Wed May 5 08:21:09 CEST 2021
That’s what I am trying to confirm .. yes there is a variable called port which I believe can be changed at will.
Sent from my iPhone
> On 5 May 2021, at 2:10 PM, Andy Green <andy at warmcat.com> wrote:
>> On 5/5/21 2:30 AM, Jacky Bek wrote:
>> I read that the default port for web sockets is either 80 or 443.
>> However when I execute libwebsockets, it uses 7681.
> The examples explicitly default to use 7681, because they are examples.
> If I instead put 80 or 443 in the examples, you have to run them as root to listen on those low ports, and you may already be running some other server on that machine on 80 or 443 so they conflict.
>> Can this be changed programmatically ?
> If you just look at the sources for any of the server examples, you can see what is going on with that
More information about the Libwebsockets