I have created a REST API example in Eclipse using Spring Boot.
When I access API using http://localhost:8080/getInfo then it works, but if I am accessing the same API from external client using IP address http://<IP address>:8080/getInfo then it gives error - Failed to connect to
How to access API using IP address OR Domain Name?