By luckysujit
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!
Heya,
Based on the information provided, there could be multiple reasons why your Java application is not accessible. Here are a few troubleshooting steps:
ps -ef | grep prizmEngine.jar
If your application is running, you should see it listed in the results.
sudo netstat -tuln | grep 9976
If your application is listening on the correct port, you should see it listed in the results.
sudo ufw status
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.