Issue
I have a Spring Boot application using actuator and in the application.properties
I have defined:
server.port=9090
management.server.port=10080
AFAIK the management.server.port
is to expose the actuator endpoint on another port different from the application's exposed port. I would expect that both should work:
http://localhost:9090/abc
http://localhost:10080/actuator
but only http://localhost:9090/actuator works and ONLY if management.server.port
is out commented.
http://localhost:10080/actuator
results in an empty page in the browser.
http://localhost:9090/actuator
results in a white label error page with There was an unexpected error (type=Not Found, status=404). in the browser.
How can I achieve setting both, server.port and management.server.port, both returning content?
Solution
port '10080' is blocked by your browser for security reasons (prevent NAT slipstreaming vulnerability), use another one like '9091'
Answered By - Dirk Deyne