We can no longer dynamically change the port number to listen on.
We compile our database using port 8080. But we allow our
application administrators to change what port to listen on thru
an INI file loaded during startup. Our application now only
listens to port 8080.
If you want to change the port number dynamically, do the following:
- call A4D_Startup(False). That will prevent the web server from
being started.
- After calling A4D_Startup, determine what port you want to use
and use SET DATABASE PARAMETER accordingly.
- Call START WEB SERVER.
This did not help.
On the PC unders Windows, I have unchecked, the Publish Database at
Startup flag in preferences. Now, it appears, I can start the PC on
any port using the above code.
Is there any problem unchecking Publish Database at Startup under
Windows?
---
On the Mac, I cannot uncheck the Publish Database at Startup flag, in
order to support Port 80 and 443.
In our application interface, we have the ability to stop the web
server and to start the web server. Once the application starts up
and is listening on port 8080, I can stop the web server and restart
it and it will listen to other high numbered ports, 8086 for example.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/