[Solved] Binding OH3 to selected interface(s)

Hi,

In OH2.X I could bind the OH web interface to selected interfaces as described here for example: Binding only to specific network interface

However when I set a listening interface other than 0.0.0.0 to org.ops4j.pax.web.listening.addresses OH3 does not seem to bind to any interface at all (also not the loopback interface). Has anyone got this working for OH3 already?

Regards,
Thomas

That seems to work.
Default port here is set to 8000. Just did a check and changed the setting. Did a restart and get this:

netstat -tulpn |grep java
tcp6       0      0 :::8443                 :::*                    LISTEN      24305/java          
tcp6       0      0 :::8000                 :::*                    LISTEN      24305/java

besides other ports.
Started a local browser and see the login screen on localhost port 8000.
Did not do further tests - just the login screen.

Thank you Wolfgang_S!

I will try again and post my results here. Maybe I just made a mistake somewhere…

Thank you again Wolfgang_S, you were right. It was a configuration error on my side:

I had the parameter set with double quotes like:
org.ops4j.pax.web.listening.addresses="172.26.0.1,127.0.0.1"
when it should be instead:
org.ops4j.pax.web.listening.addresses=172.26.0.1,127.0.0.1