If dynamic port is enabled, you can now make iManage Drive to reuse the previously used port number. To enable dynamic port number, set the following configuration to 0 as shown:

local_rest_service_port: 0

NOTE:

If you've enabled dynamic port, web extensions don't work. So, users won't be able to sync their files directly from iManage Work.