Search code examples
javadistributed-computingcorbanameservers

tnameserv: Port problems with OSX


How does one use tnameserv on OSX? Everytime I start the server, I get the error below

(COMM_FAILURE) Unable to create listener thread on the specified port: 900

I understand that the ports under 1020 are reserved for root on Mac, but I am the root user on the machine. I can change the port with -ORBInitialPort 1050 but that would mean changing lots of things in the program.


Solution

  • Refactoring the application might be the best option. Th port shall be an option to application and can reside in a properties file or a command line option.

    Running things, even while development as root or Administrator isn't good designed.