set port on daemon type change