[SOLVED] indy and idHTTPserver port lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- systemgvp · 2019-06-05 09:49 Hi, I have created a small server that uses port 80. I've insert in Form the idHTTPserver component and set same photo, but in I run in Windows not have problem. If I start it with openSUSE it will not start with error "Could not bind socket. Address and port already in use", but firewall is stop and in I change port I see the same error. I'm new to linux. ---------------------------------------------------------------------- marcov · 2019-06-05 10:59 Under Linux ports below 1024 typically need admin rights.  Maybe you are admin on windows. ---------------------------------------------------------------------- systemgvp · 2019-06-05 12:19 but if I open with sudo I see this error Quotesudo ./project1 [sudo] password di root: (project1:4655): Gtk-WARNING **: 14:18:06.169: cannot open display: ---------------------------------------------------------------------- systemgvp · 2019-06-05 12:24 If I set port 1024 or 1025 or 2000 I see this Quote./project1 This binary has no thread support compiled in. Recompile the application with a thread-driver in the program uses clause before other units using thread. Runtime error 232 at $0000000000425993   $0000000000425993   $0000000000471C0A   $00000000007A82CE   $00000000007A766C   $00000000007A80EA   $00000000007F72A8   $00000000007A6DDC   $00000000007A6C10   $0000000000477AB3   $0000000000575831 why??? ---------------------------------------------------------------------- marcov · 2019-06-05 13:00 Since you run as another user's context using sudo, that user needs to get the display server set. This is not FPC related. The second part is that you need to put "cthreads" as the first unit in your .lpr if you are going to use threads on linux. Search the wiki or google for the error message for more details ---------------------------------------------------------------------- systemgvp · 2019-06-05 13:48 Thanks, if I set port 2000 and comment change this Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$IFDEF UNIX}{$IFDEF UseCThreads}  cthreads,  {$ENDIF}{$ENDIF} with Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i cthreads, He work, but if I set port 80 not work ---------------------------------------------------------------------- systemgvp · 2019-06-05 13:57 How I can? QuoteSince you run as another user's context using sudo, that user needs to get the display server set. This is not FPC related. ---------------------------------------------------------------------- systemgvp · 2019-06-05 14:07 SOLVED with kdesu ./project1 ---------------------------------------------------------------------- Remy Lebeau · 2019-06-05 19:07 Quote from: marcov on June 05, 2019, 12:59:43 pmUnder Linux ports below 1024 typically need admin rights.  Maybe you are admin on windows. Ports below 1024 do not require admin rights on Windows.