title: Localhost vs 127.0.0.1 in Spring Framework
body: <p>I am attempting to connect a spring rest service to a client which is an android device.</p>
  
  <p>I have followed this tutorial on creating my service: <a href="https://spring.io/guides/gs/rest-service/" rel="nofollow">https://spring.io/guides/gs/rest-service/</a>
  Which by default runs the Spring Service on port 8080.</p>
  
  <p>My issue is that on localhost:8080/test I get a correct output from my service but on 127.0.0.1:8080/test I get 404 Not found. </p>
  
  <p>Is there any reason for this? I specifically need to connect to 127.0.0.1 for debugging purposes with an android emulator.</p>
  
  <p>Thank you.</p>