KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to Run Multiple Servers on Same Machine
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: March 14, 2022

It is possible to run multiple 4D servers on the same machine, but for this to work, it is necessary publish each server on different port numbers. Because the 4D server uses the SQL, Application, and DB4D Server ports for client-server communications the ports listed below must not conflict with any of the other servers on the same machine.

  • SQL Server = 19812 by default. Can be changed in Database Settings -> SQL

  • Application server = 19813 by default. Can be changed in Database Settings -> Client-Server

  • DB4D Server = 19814 by default (Application Server port + 1)

  • Remote Debugger = 19815 by default (Application Server port +2)

It is recommened to space each server's ports by least 10 increments apart.

 Ex).

 Server 1 Ports:
  • SQL Server - 19812
  • Application Server - 19813
  • DB4D - 19814
  • Remote Debugger - 19815

 Server 2 Ports:
  • SQL Server - 19822
  • Application Server - 19823
  • DB4D - 19824
  • Remote Debugger - 19825


An error similar to the one below may appear when launching a 4D server on a port used by another server.