Force services to bind to ipv4

I would like to be able to force the services binding to the various ports to use the inet protocol. They seem to be using the ipv6 protocol currently, which we do not use, and it also causes our monitoring to not work correctly. Can this be done via a config file somewhere?

Okay, so never mind. I found the better way, just disable ipv6 system wide. I thought I had done that, but apparently not completely. Just created a disable_ipv6 file in /etc/modprobe.d which had the following line:

alias net-pf-10 off

Then reboot. Worked great!

I just add

INSTALL4J_ADD_VM_PARAMS="-Djava.net.preferIPv4Stack=true"

to the top of bin/openfire.