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,
Dave

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”.

Thanks.

> I swear that’s “new”.

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

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com