diff --git a/scopes/harmony/api-server/api-server.main.runtime.ts b/scopes/harmony/api-server/api-server.main.runtime.ts index 11802c6b506c..bfbb0073f27f 100644 --- a/scopes/harmony/api-server/api-server.main.runtime.ts +++ b/scopes/harmony/api-server/api-server.main.runtime.ts @@ -180,9 +180,9 @@ export class ApiServerMain { } async getRandomPort() { - const startingPort = 3593; // some arbitrary number shy away from the standard 3000 - // get random number in the range of [startingPort, 55500]. - const randomNumber = Math.floor(Math.random() * (55500 - startingPort + 1) + startingPort); + const startingPort = 4000; // we prefer to have the ports between 4000 and 4999. + // get random number in the range of [startingPort, 4999]. + const randomNumber = Math.floor(Math.random() * (4999 - startingPort + 1) + startingPort); const port = await Port.getPort(randomNumber, 65500); return port; }