Smarter port assignment so it minimize the risk of EADDRINUSE