My question about Spring boot jar.
When running jar on production machine as:
java -jar xyz.jar
It does not respond to my request. Because it is listening on ipv6.
But when I run application as
java -jar xyz.jar -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses
It responds my requests.
Is it the production machine's configuration which cause the application to listen over ipv6, or is there any other reasons?
Fortunately
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Addresses
parameters solved my problem. But I am confused!!
Note: Tomcat is used as embedded server.
Spring boot version 1.5.4 RELEASE