Search code examples
jhipster

How to run/configure a microservice on a different IP than localhost in JHipster


Currently all applications: registry, gateway, microservices are configured to run on different ports of localhost. I couldn't yet find where to re-configure one of my microservice endpoint so that I can run that specific microservice on a different IP/machine in my network or public IP for example.


Solution

  • By default, JHipster apps (like any Spring Boot apps) bind on 0.0.0.0 IP address which means you can call them on any IP where they run.

    This is what your app logs at startup.

    If this does not work, you can configure a specific IP address using server.address property. See Spring Boot docs