Listening only on local IPv6 address

Robert Gröber, modified 10 Years ago.

Listening only on local IPv6 address

Youngling Posts: 14 Join Date: 5/21/10 Recent Posts
Hello

i've installed Klaros in a virtual machine (Ubuntu Linux) and could successfully connect to Klaros from this machine.
But when I tried to open Klaros from any other machine I can into an timeout.

So Ive checked applications listening on ports by: natstat -tln
tcp6 0 0 :::18080 :::* LISTEN

So Klaros only seems to listen on the IPv6 network. Since IPv6 is not available over all subnets, I cant connect to Klaros.

Is it possible to confiure Klaros only to listen on IPv4 address?

Thanks

robig
Robert Gröber, modified 10 Years ago.

RE: Listening only on local IPv6 address

Youngling Posts: 14 Join Date: 5/21/10 Recent Posts
Ok, maybe it isnt a port/address issue.

I can connect from localhost. But even when I try to connect via IP from the virual machine to it self, I'm getting 400 Bad Request error:

test-ubuntu:/opt/klaros$ wget --no-proxy -O - http://10.40.21.62:18080/klaros-web
--2010-05-21 11:49:35--  http://10.40.21.62:18080/klaros-web
Connecting to 10.40.21.62:18080... connected.
HTTP request sent, awaiting response... 400 Bad Request
2010-05-21 11:49:35 ERROR 400: Bad Request.
thumbnail
Heiner Westphal, modified 10 Years ago.

RE: Listening only on local IPv6 address

Youngling Posts: 13 Join Date: 3/2/09 Recent Posts
I get HTTP 400 only, if I set application.url in the file
$HOME/.klaros/klaros.properties
but use another URL to connect.

Did you configure an application URL?

Regards,

Heiner Westphal
Robert Gröber, modified 10 Years ago.

RE: Listening only on local IPv6 address

Youngling Posts: 14 Join Date: 5/21/10 Recent Posts
Ive tried to set that property but didn't work emoticon
Same issue as before.

I've installes Klaros on Windows XP and it works perfectly there. But its not a good idea to let the windows testmachine provide that service. Its only for client tests and not powered on all day.
thumbnail
Heiner Westphal, modified 10 Years ago.

RE: Listening only on local IPv6 address

Youngling Posts: 13 Join Date: 3/2/09 Recent Posts
If the application.url property is unset, it should work regardless which url you use (as long as it leads to
the tomcat running klaros that is).

It might indeed be an issue related to tomcat and IPv6.
I currently have no linux box with ipv6 enabled around so I cannot check this right now.

If you don't need IPv6 you might test if your klaros-setup works with IPv6 disabled:

A quick search supplied some ways to accomplish that.
Ubuntu-Forums: Disable IPv6
looks most promising to me.

Best Regards,

Heiner Westphal
Robert Gröber, modified 10 Years ago.

RE: Listening only on local IPv6 address

Youngling Posts: 14 Join Date: 5/21/10 Recent Posts
Geat! That solved the problem! Thank you, Heiner!
(I've used http://www.ubuntugeek.com/how-to-disable-ipv6-in-ubuntu.html)
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Listening only on local IPv6 address

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Robert,

please note that http://10.40.21.62:18080/klaros-web is actually not the correct URL to connect, please use a slash at the end (http://10.40.21.62:18080/klaros-web/). Modern browsers add this silently so the former URL will work from there as well, but wget will take the raw URL as specified.

Hope this helps.

Regards,

Torsten