Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Springboot embedded tomcat binds to IPV6

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

like image 499
Sajid Avatar asked May 06 '16 18:05

Sajid


1 Answers

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

like image 171
Andy Wilkinson Avatar answered Sep 24 '22 08:09

Andy Wilkinson