for msgbus server, check the register before handle other request and only one can register if port=0