Port is tricky.
Default one is 80. If you don't set it at the start, shttpd does
initialization with the default one, and it is of course privileged one, and
requires root permissions. Change the default port number to something high,
like, 12345, in config.h and recompile shttpd.

On Wed, Aug 20, 2008 at 12:14 AM, Ronald Reed <[EMAIL PROTECTED]>wrote:

> I have made a simple application with the embedded shttpd library, but I
> have run into a snag. I used the example.c source code as a starting
> point, but it seems that the shttpd_set_option is getting ignored for
> setting the port number. It works if I put it on the command line with
> -ports 8080, but shttpd_set_option(ctx, "ports", "8080"); doesn't work.
> I always get the error message:
>
> open_listening_port(80): Permission denied
> cannot open port 80
>
> This is using the latest CVS code.
>
> Ron Reed
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> shttpd-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shttpd-general
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to