Is there a way to set HTTP port at runtime?

I know the macro HTTP_PORT can override but is there a way to allow it to be set at run time via user saved setting?
Regards.

1 Like

You can set the macro HTTP_PORT to reference a global variable or a function.

unsigned int get_http_port(void);
#define HTTP_PORT get_http_port()

2 Likes