I am working on a rest api using springboot, I am facing small issue when I try to deploy the jar it auto binds to ipv6 which we do not want, I know I can use external tomcat. But just for the sake of learning I was wondering if it is possible to force it to bind to ipv4 instead?
Thanks Sajid
You can use server.address
in your application.properties
file to control the network address to which you app will bind.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With