Fedora 23 Server OH2 listening on IPV6 only

As the title says OH2 is only listening on ipv6, see netstat here:

[tboston@monitoring addons]$ sudo netstat -tupan |grep java tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN 2583/java tcp6 0 0 :::8101 :::* LISTEN 2583/java tcp6 0 0 127.0.0.1:41581 :::* LISTEN 2583/java tcp6 0 0 :::8080 :::* LISTEN 2583/java tcp6 0 0 :::37400 :::* LISTEN 2583/java tcp6 0 0 :::8443 :::* LISTEN 2583/java tcp6 0 0 127.0.0.1:31001 127.0.0.1:32000 VERBUNDEN 2583/java udp6 0 0 192.168.222.201:58561 :::* 2583/java udp6 0 0 192.168.222.111:46912 :::* 2583/java udp6 0 0 :::1900 :::* 2583/java
how can I change that?

Try putting -Djava.net.preferIPv4Stack=true to openhab start options.

thanks, but, how do I set start options?

You can put that in bin/setenv script for manual start from openhab home. I’m not sure how RPM installation looks a like, but try editing /etc/default/openhab file to modify service options.

1 Like