socialGaurav
socialGaurav

Reputation: 23

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.

Upvotes: 0

Views: 730

Answers (1)

Gaël Marziou
Gaël Marziou

Reputation: 16284

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

Upvotes: 1

Related Questions