EN
Spring Boot - public HTTP access to spring boot application
6
points
In this short article, we would like to show how to permit to access via HTTP (or HTTPS) to Spring Boot Application from public network or local home network.
Quick solution:
Add the following line to
resources/application.properties
file:
...
# enables access from any IP address
server.address=0.0.0.0
...
Testing
1. Run Spring Boot Application on your machine,
2. Find your machine's IP address (local or global address),
3. Open machine's IP address in your web browser, e.g. you can use your phone to open the address.
Preview (Dirask project run in home network and open on phone):
Alternative titles
- Spring Boot - open spring boot application from external IP machine
- Spring Boot - access spring boot application in local network
- Spring Boot - local home network access to spring boot application
- Spring Boot - external HTTP access to spring boot application
- Spring Boot - access Spring Boot Application from public network