I have deployed a stand alone spring boot jar file to a Redhat Linux server. The jar is running in localhost:8081 in the Linux server.
The Spring Boot application has some endpoints. For example localhost:8081/api/some-post-endpoint.
Usually, I would hit an endpoint in my local machine using Postman by selecting the HTTP method and putting localhost:8081/api/some-post-endpoint in the url bar of Postman.
I'm clueless on how I would hit and endpoint from the instance of application I deployed in Redhat Linux server.
For example, if my Redhat Server address is u12345.test.cloud.com, when I tried to put u12345.test.cloud.com/api/some-post-endpoint in Postman, it returned an error saying
Could not send request Error: connect ECONNREFUSED
I am able to ping the Linux server and it succeeds.
It's just my first time to deploy an app to cloud and I saw something that says "Service Name" in the deployment options.
Is Service Name required to hit a remote endpoint? What steps can I do to check if I can possibly hit the endpoint via postman?
I'd appreciate any comments.
Thank you.