KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Client-server web server settings
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: July 8, 2024

In a client-server application, the server and each remote client can run their own web servers. Web settings on the server apply only to its web server. Client web settings, configurable on a remote client and indicated by “Web (client)”, apply to all remote clients’ web servers.



This distinction can be seen in the XML of the settings.4Dsettings file.



In the above example, the server’s web settings are updated to have HTTP port 8080 and HTTPS port 444, while remote clients’ web servers are configured to have HTTP port 8090 and HTTPS port 446. If a remote client needs to run its web server using port numbers that are different from 8090 and 446, for example, use the Web Server object:

$settings:=New object("HTTPPort"; 8088; "HTTPSPort"; 448)
$webServer:=WEB Server
$result:=$webServer.start($settings)