7

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

too honest for this site
  • 12,050
  • 4
  • 30
  • 52
Sajid
  • 379
  • 4
  • 18
  • 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 May 06 '16 at 18:48
  • Possible duplicate of [How can I disable IPv6 stack use for IPv4 IPs on JRE?](http://stackoverflow.com/questions/11850655/how-can-i-disable-ipv6-stack-use-for-ipv4-ips-on-jre) – Marged May 06 '16 at 18:54

1 Answers1

11

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

Andy Wilkinson
  • 108,729
  • 24
  • 257
  • 242