Hi, I checked your application and I found the error to be in a port not being released.
If you first run the application outside the IDE, using the default JRE, it will work, but when you close the application, the actual java process is still opened, so when you relaunch the application, it will fail when trying to bind the port.
Probably it works in the IDE because when you stop the execution of the application it is killing the JRE process.
Ensuring to release any opened port when the application process quits should solve the problem.
MAgo