Creatimg a CommandBox server on an unused port

As I’ve mentioned previously, I’m thinking about a standalone desktop app built on CommandBox. It would be distributed to non-developer end users, for them to install and run locally in a browser.

Is there any way to tell Commandbox to pick a port that’s not currently in use when it creates the server?

Thanks as always,

If I’m not wrong, it will choose a random port if you don’t specify one.

Hmmm, you appear to be right. I swear that’s “new”.


> I swear that’s “new”.

Nope, it’s been there since version 1! :slight_smile:



ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

ColdBox Platform: