Page 1 of 1

Making my OpenKM installation open to the outside world

PostPosted:Wed Feb 12, 2014 3:27 pm
by hbuus
I've read this page:
http://wiki.openkm.com/index.php/Basic_ ... _knowledge

Where it says this:
Making OpenKM accessible from other computers

By default, Tomcat only listens for connections on localhost. If you want to access OpenKM from other computers modify the file $TOMCAT_HOME/conf/server.xml, adding the address="0.0.0.0" attribute to the Connector if it doesn't already exist.
<Connector address="0.0.0.0" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

Windows
\bin\catalina.bat start


Upon installation of OpenKM, I checked server.xml and found that the above Connector-line is already present in it.
Therefore you shouldn't have to add anything at all to server.xml, right?
Then I ran catalina.bat as described above.
Now I run the OpenKM start-script, and my OpenKM server boots.

So far, so good.

I checked my IP-address which is x1-6-2c-b0-5d-ad-0a-ca.cpe.webspeed.dk.
To test if others can connect to my OpenKM-server, I therefore typed this in the browser:
http://x1-6-2c-b0-5d-ad-0a-ca.cpe.websp ... /login.jsp

Now the OpenKM-login screen should be displayed, right?
It doesn't.
Google Chrome says: "Oops! Couldn't make a connection to x1-6-2c-b0-5d-ad-0a-ca.cpe.webspeed.dk"

Then I tried this:
http://x1-6-2c-b0-5d-ad-0a-ca.cpe.websp ... /login.jsp

Same result.

How can that be?

I checked my firewall, and the Apache HTTP Server is on the list of programs that are allowed Public access.
Therefore it should be possible to connect to my OpenKM-server, right?

Can anyone see why it doesn't work?

Thanks!

Best,
Henrik

Re: Making my OpenKM installation open to the outside world

PostPosted:Fri Feb 14, 2014 8:47 am
by jllort
If from the server you can connect to ip:8080 then there's no problem with configuration. What I've seen in your server.xml seems correct. If ip:8080 is right then you got configuration network problem ( can be firewall, router or other )

Re: Making my OpenKM installation open to the outside world

PostPosted:Fri Feb 14, 2014 10:09 am
by hbuus
I can't connect to my own computer to ip:8080.
Then it must be my OpenKM configuration that is wrong?
What can be wrong other than the line in Server.xml, which should be correct?
Here's the line:
Code: Select all
    <Connector port="8080" address="0.0.0.0" protocol="HTTP/1.1"
               connectionTimeout="20000" redirectPort="8443" />
I tried turning off firewall in my router, but I still can't connect.

Thanks for helping with this!

Re: Making my OpenKM installation open to the outside world

PostPosted:Fri Feb 14, 2014 10:24 am
by hbuus
I just noticed something!

When I log on to localhost like this:
http://localhost:8080/OpenKM/login.jsp

It works!

- But when I replace localhost with my IP-number, like this:
http://188.183.140.126:8080/OpenKM/login.jsp

It doesn't work. I can't connect. Google Chrome says: "Oops! Couldn't make a connection to 188.183.140.126"

Hope this helps?

Re: Making my OpenKM installation open to the outside world

PostPosted:Sun Feb 16, 2014 9:30 am
by jllort
xml seems right.

When you start tomcat binding 0.0.0.0 if you execute at command line "netstat -an" do you get 0.0.0.0 binging 8080 ?
Do you see any error on start up ? catalina.log file with this configuration