Version 6.8 and 2003
The TCP port ID that is used by the 4D Web server can be changed programmatically by executing the command SET DATABASE PARAMETER. The selector # 15 (or the constant Port ID) allows 4D to change on the fly the TCP port ID used by the 4D Web server.
Here is an example of the command call to set the TCP port ID to port 8080:
SET DATABASE PARAMETER(15;8080)
SET DATABASE PARAMETER(Port ID;8080)