7
votes

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

1
This doesn't look like a programming question, but professional server administration. These are off-topic. Either way, it is not related to embedded systems. Read the tag decriptions before adding them.too honest for this site

1 Answers

11
votes

You can use server.address in your application.properties file to control the network address to which you app will bind.