Languages
[Edit]
EN

Spring Boot - public HTTP access to spring boot application

6 points
Created by:
Root-ssh
177780

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):

Spring Boot Application accesses from the local home network.
Spring Boot Application accesses from the local home network.

 

Alternative titles

  1. Spring Boot - open spring boot application from external IP machine
  2. Spring Boot - access spring boot application in local network
  3. Spring Boot - local home network access to spring boot application
  4. Spring Boot - external HTTP access to spring boot application
  5. Spring Boot - access Spring Boot Application from public network
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join