Can't hit Sprtinboot endpoint on droplet

Posted March 9, 2018 981 views
API Java Ubuntu 16.04


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.


1 comment
  • Do you have Firewall (e.g. ufw) enabled on your Droplet, or do you use Cloud Firewalls? In that case, make sure the port you’re using is allowed.

0 answers
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!