Direct Project Setup

5 views
Skip to first unread message

MUHAMMAD UMER

unread,
Apr 10, 2025, 5:44:41 AMApr 10
to nhindirect-discuss
I am setting up direct project in my local linux system. I  want to add the user using the:

sudo java -jar james-server-cli.jar -h 127.0.0.1 -p 9999 adduser devsu...@domain.com pass123
Instead of the local host it s using my ipv4 and connection is timed out I have steup the configurations in the james.sh:
export JAVA_OPTS="-Djava.rmi.server.hostname=127.0.0.1 \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9999 \
-Dcom.sun.management.jmxremote.rmi.port=9999 \
-Dcom.sun.management.jmxremote.local.only=true \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-Djava.net.preferIPv4Stack=true \
-Djava.rmi.server.useLocalHostname=true"
 but i am getting error:
Error connecting to remote JMX agent : Connection refused to host: (mypublicipv4); nested exception is:
java.net.ConnectException: Connection timed out (Connection timed out)
usage: java org.apache.james.cli.ServerCmd --host <arg> <command>
 -h,--host <arg>   node hostname or ip address
 -p,--port <arg>   remote jmx agent port number

Reply all
Reply to author
Forward
0 new messages