Answer the question
In order to leave comments, you need to log in
What is the correct way to allow a Java application to listen on a privileged port?
I have a Debian Squeeze server, I have JRE 7 from Oracle, I have a Java application that needs to listen on a few privileged ports (below 1024).
Ways I have tried:
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
Answer the question
In order to leave comments, you need to log in
You can also compile your own kernel, for this, in the .../include/net/sock.h file, replace PROT_SOCK from 1024 to 0.
Although this option is not always possible and lowers the system security.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question