Menu

#11 Default Port should be 80

open
nobody
None
1
2007-11-23
2007-11-20
No

Hi Gang,

Almost every web server on the planet uses 80. Okay there a good number of hidden ones that don't, but they're the minority. Please switch to having miniwebsvr default to 80. I suppose there is some level of concern surrounding conflicts with other web servers like IIS and Apache, but that's beyond our control in the first place.

Thanks,
Christian Blackburn

Discussion

  • Nickolas Grigoriadis

    Logged In: YES
    user_id=1689094
    Originator: NO

    OK, point taken.
    The reason for using port 8080 is because it is the next popular HTTP port. Since the default port 80 requires decent privileges because all ports below 1024 are considered "priority" and is therefore protected by most Operating-systems by design.

    Even windows does this, even though you don't really notice it, because most windows user accounts have too many rights. (e.g. running your computer as administrator)

    If I can devise a reliable way of estimating if the user running the server has sufficient rights to run on port 80, then I will make so.
    For that to work I would also like to find a way to drop privileges, so that if the web server gets hacked, the hacker cant do anything with it anyways.

     
  • Nickolas Grigoriadis

    • priority: 5 --> 1
     
  • Christian Blackburn

    Logged In: YES
    user_id=561770
    Originator: YES

    Hi Guys,

    On the NT Platform you can use: IsNTAdmin() to determine whether or not the user has admin rights. It may be necessary to check the platform (Win32s, Win9X, or WinNT) before executing this function by using GetVersionEx(). By the way do users get an error message if they try to run this on Windows 9X, should they?

    Thanks,
    Christian

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.