title: How to make Spring Boot application accessible by external IP address of the server?
body: <p>I'm a newbie to Spring Boot. I have a REST API application written in Spring Boot. When I execute my Spring Boot JAR, everything is okay and I can access the REST API with the <code>localhost</code> address instead of the actual one:</p>
  
  <pre><code>http://localhost:8083/articles
  </code></pre>
  
  <p>But when I try to access the REST API by my external IP address, I can't do it:</p>
  
  <pre><code>http://100.90.80.70:8083/articles
  </code></pre>
  
  <p><code>netstat -antu</code> command in the Linux terminal gives me the following output:</p>
  
  <pre><code>Active Internet connections (servers and established)
  Proto   Recv-Q  Send-Q  Local Address  Foreign Address  State
  tcp6       0      0      :::8083            :::*        LISTEN
  </code></pre>
  
  <p>As I understand, my app is accessible only in <code>localhost</code>, because it hasn't a <code>foreign address</code>.</p>
  
  <p>My <code>application.properties</code> file has only this line:</p>
  
  <pre><code>server.port=8083
  </code></pre>
  
  <p>Also, when I try to add a <code>server.address</code> line to <code>application.properties</code> like that:</p>
  
  <pre><code>server.address=100.90.80.70
  server.port=8083
  </code></pre>
  
  <p>I have the following <code>Exception</code>: <code>Caused by: java.net.BindException: Cannot assign requested address</code>.</p>
  
  <p>So my question is: how to make Spring Boot application accessible by external IP address of the server? Thank you.</p>