can reach jira, can't find confluence
Asked by Blommetje:

I have jira \& confluence installed on 1 server. To reach jira i type IPADDRESS:8080 and logged in on the server (localhost) is it localhost:8090 for Confluence.

But IPADDRESS:8090 does not give me Confluence from the outside

How do i reach confluence from the outside?

thnx


Answers:
author: David Keaveny
body: I'm stuck with the same problem; I've got a fresh installation of Confluence 4.2.13 on a fresh installation of Ubuntu Server, and while I can access other web applications remotely (e.g. phpPgAdmin), I cannot access Confluence from a remote PC. I can only access Confluence if I log on to the server itself and connect either to [http://localhost:8090/ or](http://localhost:8090/%C2%A0or) http://\<ip-address\>:8090/ or http://\<host-name\>:8090/.

I tried editing /opt/atlassian/confluence/conf/server.xml and setting Engine's defaultHost and Host's name to the server's registered DNS name, but to no avail.

**Edit:** if I try connecting in Fiddler, it reports the following:

```
HTTP/1.1 502 Fiddler - Connection FailedContent-Type: text/html; charset=UTF-8Connection: closeTimestamp: 10:33:37.899[Fiddler] The socket connection to &lt;host-name&gt; failed. &lt;br /&gt;ErrorCode: 10060. &lt;br /&gt;A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond &lt;ip-address&gt;:8090
```

**Edit 2:** one more data point - while phpPgAdmin and Zentyal both work OK (and both use Apache), I get the same error when connecting to Agenti, which uses lighttpd. This suggests that the problem then is not specifically with Confluence and Tomcat, but some system setting that Apache is overriding to serve up its content, but that Tomcat and lighttpd are not.

comments: author: Harry Chan
body: It definitely does look like a Firewall issue. I'd check iptables and other permission around what the Confluence user that runs Tomcat can do. If you can access it locally it means Confluence is working as expected.


author: David Keaveny
body: It looks like you're right; there was something weird going on with my iptables configuration - see <http://serverfault.com/questions/424376/cannot-access-tomcat-application-remotely-but-can-access-apache-applications> for how I fixed it.


author: Andrew Frayling
body: Hi Maarten,

Is your server behind a firewall? Could that be blocking traffic to your server on port 8090?

Andrew.

comments: author: Blommetje
body: Sorry for kicking the old topic, but the issue is still open. I just rebooted the server and opened the port 8090 in the firewall. The rule looks the same as the one for Jira, but still no luck..

How can i debug this more?


author: Harry Chan
body: Is the same user used to run JIRA/Confluence? It definitely is a network/firewall issue if you can access it locally. Also check if the port is already in use by another application and if there's anything in the logs.


author: Thomas Schlegel
body: Hi Maarten,

there should be an entry like

\<Host name="123.456.789.10" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"\> (with your IP-Address of course)

Perhaps these pages will also help you:

<http://forums.atlassian.com/thread.jspa?threadID=35000>

<http://confluence.atlassian.com/plugins/viewsource/viewpagesrc.action?pageId=233145595>

Good Luck

Thomas

comments: author: Blommetje
body: Yes, i have exactly his entry, and edited it with the IP-address of the server. No luck though. It still works on the local server, but not anymore with 'localhost' but with the IP. So the change did take place.


author: Blommetje
body: It says defaultHost="localhost", connector port 8090.


author: Thomas Schlegel
body: Hi Maarten,

what is your host name ? You can see this in \<confluence-installation-directory\>/conf/server.xml

Best regards

Thomas


Tags: localhost