Cannot assign requested address: JVM_Bind

Ah yes, that will do it. Unfortunately, Java does not give a way to test and see if a port is in use, so the only way we can check is to try to bind to it in a try/catch and see if it errors out. That means that sometimes a port will error for other reasons even when it’s not bound to. If you look at this code here, you can see that I already have checks for several specific error types in place to try and combat this:

https://github.com/Ortus-Solutions/commandbox/blob/development/src/cfml/system/services/ServerService.cfc#L1384-L1404

If you wouldn’t mind debugging a bit, I’d be interested in seeing exactly what exception was being thrown for you and why it didn’t trigger any of those checks in the catch blocks.

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