"Network error" to create Application links JIRA <> Confluence
Asked by Leandro Moraes de Oliveira:

I installed the Jira Software and Confluence, both are located in the same server and are accessed by https using a reverse proxy with nginx. The issue is that I can't create a correct application link... The system return that cannot connect in the application of another side and say that the proxy is with error.

**JIRA connector in file server.xml block**

```
<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="true" scheme="https"
proxyName="jira.solaristelecom.com" proxyPort="443"/>
```

**JIRA Software settings application link targeting Confluence:**

![confluence.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/69629i6D0A1196C48C6470/image-dimensions/631x432?v=v2 "confluence.PNG")

**CONFLUENCE connector in file server.xml block**

```
 <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="https" secure="true" proxyName="confluence.solaristelecom.com" proxyPort="443"/>
```

**Confluence Software settings application link targeting JIRA:**   
![jira.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/69631i10C8E3C6ADB8178A/image-dimensions/629x448?v=v2 "jira.PNG")

I already tried to create another connection as this link but didn't work because start to create error in the applications that were ok.

<https://confluence.atlassian.com/kb/how-to-create-an-unproxied-application-link-719095740.html>

++**Detail:**++

How the both application are installed in the same host I passed the internal URL and port to call the another application... If I pass the external URL the system complain that the connection was refused.


Answers:
author: Alexis Robert
body: Hi [@Leandro Moraes de Oliveira](/t5/user/viewprofilepage/user-id/3595770) ,

if you're using nginx as a reverse proxy with https enabled, you should be accessing both instances with <https://jira.mycompany.com> and <https://confluence.mycompany.com>, but I see here that you're using http URL with the port number.

Can you try with the normal https URL in the application link menu ?

Let me know if this helps,

--Alexis

comments: author: Leandro Moraes de Oliveira
body: Hi [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386) thanks for your fast reply.

I changed for the right URL and return the error "Connection refused" as the screen:

![jira-to-confluence.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/69642i4F1328160FDB468D/image-dimensions/714x505?v=v2 "jira-to-confluence.PNG")

Both applications are up and running, JIRA and Confluence can be accessed by the URL referred. Firewall I don't know, but I think is not a problem because I can ping the DNS and return well.


author: Alexis Robert
body: Hi [@Leandro Moraes de Oliveira](/t5/user/viewprofilepage/user-id/3595770) ,

even if you can ping the DNS, it might be different on the server that is hosting Jira and Confluence. If you don't have direct access to these servers, you should see with your internal IT department if they can help, because it seems here that Jira and Confluence can't communicate ...


author: Leandro Moraes de Oliveira
body: Alexis, I have fully access to the servers, but I don't know why it's returning it error.


author: Alexis Robert
body: From the Jira server, can you go on the command line and ping the Confluence server ? and also do a telnet : telnet confluence.mycompay.com 443 ?

This will show if there's a network issue behind both servers or not.


author: Leandro Moraes de Oliveira
body: Both are returning connection refused as:

![error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/69647iB0367EC8E7EDFAF3/image-size/large?v=v2&px=999 "error.PNG")

Is it a firewall issue?


author: Alexis Robert
body: This means that on your internal network, where your servers are hosted, there's likely a network rule or firewall that is blocking connections.

On your side, you can connect to Jira and Confluence because there is no restrictions from your corporate network to those servers.

You need to check with your network team and ask them to see why both servers can't communicate.

If you want, you could also try to do the following :

* on the server, edit the /etc/hosts file and add these lines

```
confluence.solaristelecom.com 127.0.0.1
jira.solaristelecom.com 127.0.0.1
```

This might help with your issue, as both servers will try to talk locally instead of following a outside network route. If it doesn't help, just remove both lines and get back to your network team.


author: Leandro Moraes de Oliveira
body: [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386) I tried to make these changes adding the 2 lines in the /etc/hosts file and restart the server but the issue persist and the telnet return the same results.


author: Alexis Robert
body: does the telnet work from the jira server to the confluence server with port 8080 for example ?

what I've done previously in cases like this is to add a connector that's only used for the Application Links so that you bypass the reverse proxy, it's explained here : <https://confluence.atlassian.com/kb/how-to-create-an-unproxied-application-link-719095740.html>


author: Leandro Moraes de Oliveira
body: [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386)

does the telnet work from the jira server to the confluence server with port 8080 for example ?

Didn't answer to, return the same error: Connection refused

About the URL of unproxied application link I tried to use that but after change the applications it's returning other errors as:

![complaim.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/69667iFDB5EB1165179CED/image-size/large?v=v2&px=999 "complaim.PNG")

I added the line:  
\<Connector port="8080" relaxedPathChars="\[\]\|" relaxedQueryChars="\[\]\|{}\^\&#x5c;\&#x60;\&quot;\&lt;\&gt;" connectionTimeout="20000" maxThreads="200" minSpareThreads="10" enableLookups="false" acceptCount="10" URIEncoding="UTF-8" /\>  


author: Leandro Moraes de Oliveira
body: I got it, creating the unproxied URL, I made a mistake when I setup for the first time using the same port of https connection, 8080, after I changed to 8081 works well.

Thank you very much.


Tags: confluence-server

jira

reverse-proxy

server