For a computer with multiple IP addresses, if you want to have 4D's built-in Web server listen on a specific IP address in a compiled database, you will need to use the command SET DATABASE PARAMETER. It allows you to modify, for the current process, various internal parameters of the 4D database including the IP Address to listen on. In your On Startup and/or On Server Startup Database Methods call this command and assign the desired IP Address to the database procedurally.
You must pass a hexadecimal IP address in the parameter. That is, to designate a IP address such as "a.b.c.d", you would write:
SET DATABASE PARAMETER(IP Address to listen;$addr)