By nickknack17
Hello,
I set up a Springboot Java application as well as its MySql database on the 1Gb 1Cpu Ubuntu droplet. The java app runs, and it says Tomcat has spun up on a port. When I try to hit an endpoint defined in my app’s Controller though, from either Postman or Chrome, I get a message saying “{{domain}} took too long to respond.” I’ve tried with both the Domain i’ve added to the droplet and the plain old API address.
My call is: {{Domain/IP}}:{{Port #}}/{{Endpoint}}
Am I doing something wrong? Do I need some kind of validation/authorization to hit the endpoint from another machine? The endpoints works when I run the app locally and not on the droplet.
Thanks!
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!
Hello,
I will make sure that the port is open to external connections and that the firewall is also not blocking connections on this port as well.
If you’re running UFW or other firewall management service you can double check the configuration.
Regards
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.