Setting the ports used by the servers

When setting a port number with the procedure below, the projects_root directory must be writable from the machine you're logged into.
  1. Stop the server, if it is running. See Stopping the Validate Servers.
  2. Run the following command:
    validate service --projects-root <projects_root> set-service-property <server_name> port <port_number> 
    
    where
    • <projects_root> is the projects_root directory you want to use (mandatory argument)
    • <server_name> is one of:
      • database
      • license
      • klocwork
    • <port_number> is the port to be used by the specified server.
  3. Restart the server. See Starting the Validate Servers.

Example

To set the port used by the Validate Server to port 8074:

validate service --projects-root C:\Klocwork_Server\projects_root set-service-property klocwork port 8074