I have installed my app in /home/XXXXX/
/home/
|— prizm-dist/
| |— conf/
| |— jre/
| | |— [jre files]
| |— prizm_db/
| |— html/
| |— logs/
| |— run.sh
| |— run_test.sh
| |— prizmEngine.jar
Above is complete file structure
I am trying to access my app in browser but getting error
refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED
My app is trying to use Port : 9976
I have enabled UFW 9974:9976
I have also installed Java Package in my Droplet, but still I am not able to access my app. Please help
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
Based on the information provided, there could be multiple reasons why your Java application is not accessible. Here are a few troubleshooting steps:
If your application is running, you should see it listed in the results.
If your application is listening on the correct port, you should see it listed in the results.
The ports 9974 to 9976 should be listed as allowed in the output.
Ensure No Other Service is Using the Same Port: Ensure that no other service is using port 9976. If another service is using this port, your application will not be able to bind to it.
Check Application Logs: Check the logs for your application to see if there are any error messages. The logs directory is generally a good place to start.
Check Java Version: Ensure that you have the correct version of Java installed. You can check this by running
java -version
from the command line. The version of Java you have installed should be compatible with your application.Check Your Network Settings: If your droplet is set to listen only on localhost (127.0.0.1), you will not be able to access the application from the outside world. Make sure your application is set up to listen on 0.0.0.0 (all interfaces) or a public-facing IP address.
Remember, the best way to diagnose these problems is by looking at your application logs, which can provide detailed error messages. If you still cannot find the problem, please provide additional information or error logs, if any.