If dynamic port is enabled, you can now make iManage Drive to reuse the previously used port number by using the following configuration:

local_rest_service_port: 0

NOTE:

If you have enabled dynamic port, web extensions do not work. So, users will not be able to sync their files directly from iManage Work.