I have two applications that need to bind to the same address, I believe it's a problem in the architecture, but at this moment I cannot change that.
I am aware that it should not be possible for two applications to connect in the same address and port. However, for some reason it was possible in Java 6, and by setting useExclusiveBind property to false, it was also possible in Java 8.
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7179799
However, in Java 11 even setting the property mentioned above, it is not possible anymore. As I know this is the correct behaviour, i.e. two applications should not bind in the same address/port. I was wondering if is there any workaround to reestablish the previous behaviour.
Thank you.
CodePudding user response:
