[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gb.httpd: bind 0.0.0.0 - Address already in use
[Thread Prev] | [Thread Next]
- Subject: Re: gb.httpd: bind 0.0.0.0 - Address already in use
- From: Linus <olivier.cruilles@xxxxxxxx>
- Date: Tue, 25 Mar 2025 19:31:02 -0400
- To: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Cc: Linus <olivier.cruilles@xxxxxxxx>, user@xxxxxxxxxxxxxxxxxxxxxx
Gaucho, Don’t worry about the message ‘Adresse already in use’, it’s because the embedded web server (‘libthttpd’) inside the Web App is using by default 0.0.0.0 as bind address If you want to set the PORT or the Bing Address of the embedded web server use: GB_HTTPD_PORT=1000 GB_HTTPD_HOST=127.0.0.1 gbr3 -H <you_web_app.gambas> or in the IDE —> Menu DEBUG —> Settings —> Environment —> Here add your variables Olivier > Le 25 mars 2025 à 17:44, T Lee Davidson <t.lee.davidson@xxxxxxxxx> a écrit : > > On 3/25/25 5:03 PM, gaucho wrote: > [snip]> I saw you define the connection inside the project but that force to >> include the sqlite db in the project. > > Setting the Connection inside the project does not force including the DB inside the project. The sqlite database file can be located anywhere on the accessible filesystem(s). > >> This is the project, i'm trying to connect to DB by code, like: >> Public con As New Connection >> Public Sub Main() >> Dim sName As String = "erp" >> Dim sType As String = "sqlite3" >> Dim sApp As String = User.Home &/ ".config" &/ sName >> '' Database setup >> con.Type = sType >> con.Host = sApp >> con.Name = sName & ".sqlite" >> con.Open() >> FLogin.Show >> End > I tried to Show a WebForm from a module as you are attempting. It didn't work. > > The project stops at the line calling the .Show() method, and the backtrace shows a "Null object" error raised by WebForm.DoShow.1247. That line, "hWindow = New WebWindow(_Current._GetWindowContainer())" apparently tries to create a new WebWindow based on the Current WebForm. But it seams that Showing the form from a module means there is no Current WebForm. > > I tried setting the Current WebForm before showing the form, and got a stack overflow. > > > -- > Lee > > --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- > --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ---- > >
Re: gb.httpd: bind 0.0.0.0 - Address already in use | gaucho <64xcode@xxxxxxxxx> |
gb.httpd: bind 0.0.0.0 - Address already in use | gaucho <64xcode@xxxxxxxxx> |
Re: gb.httpd: bind 0.0.0.0 - Address already in use | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: gb.httpd: bind 0.0.0.0 - Address already in use | Olivier Cruilles <olivier.cruilles@xxxxxxxx> |
Re: gb.httpd: bind 0.0.0.0 - Address already in use | gaucho <64xcode@xxxxxxxxx> |
Re: gb.httpd: bind 0.0.0.0 - Address already in use | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |