handle MSF_RPC_PORT as other ports