Connection refused error

I have installed Jitsi in AWS ubuntu 16.4 server but I am getting this connection error as below:


Error in jocofo log

Jicofo 2020-04-19 01:04:09.876 SEVERE: [36] Connection refused (Connection refused), host:localhost, port:5347
org.xmpp.component.ComponentException: Connection refused (Connection refused)
at org.jivesoftware.whack.ExternalComponent.connect(
at org.jivesoftware.whack.ExternalComponentManager.addComponent(
at org.jivesoftware.whack.ExternalComponentManager.addComponent(
at org.jitsi.retry.RetryStrategy$
at java.util.concurrent.Executors$
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
at java.util.concurrent.ScheduledThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: Connection refused (Connection refused)
at Method)
at org.jivesoftware.whack.ExternalComponent.connect(

I tried the same with ssl:

File permission:

drwxr-xr-x 6 root root 4096 Apr 19 02:36 ./
drwxr-xr-x 111 root root 4096 Apr 19 02:36 …/
drwx------ 2 jicofo jitsi 4096 Apr 19 02:43 jicofo/
drwxr-x— 2 root jitsi 4096 Apr 19 02:40 jigasi/
drwxr-xr-x 2 root root 4096 Apr 19 02:43 meet/
drwxr-x— 2 jvb jitsi 4096 Apr 19 02:39 videobridge/


drwxr-xr-x 4 jicofo jitsi 4096 Apr 19 02:36 jicofo/
drwxr-xr-x 4 jigasi jitsi 4096 Apr 19 02:40 jigasi/
drwxr-xr-x 13 ubuntu ubuntu 4096 Apr 19 02:36 jitsi-meet/
drwxr-xr-x 2 root root 4096 Apr 19 02:36 jitsi-meet-prosody/
drwxr-xr-x 2 root root 4096 Apr 19 02:36 jitsi-meet-web-config/
drwxr-xr-x 3 jvb jitsi 4096 Apr 19 02:36 jitsi-videobridge/

Port used:

netstat -an | grep 5347
tcp 0 0* LISTEN
tcp6 0 0 ::1:5347 :::* LISTEN

lsof -i:5347
lua5.1 1420 prosody 8u IPv4 16768 0t0 TCP ip6-localhost:5347 (LISTEN)
lua5.1 1420 prosody 9u IPv6 16769 0t0 TCP ip6-localhost:5347 (LISTEN)

jicofo config

Jitsi Conference Focus settings

sets the host name of the XMPP server

sets the XMPP domain (default: none)

sets the secret used to authenticate as an XMPP component


sets the port to use for the XMPP component connection


sets the XMPP domain name to use for XMPP user logins

sets the username to use for XMPP user logins


sets the password to use for XMPP user logins


extra options to pass to the jicofo daemon


adds java system props that are passed to jicofo (default are for home and logging config file)

JAVA_SYS_PROPS=" -Djava.util.logging.config.file=/etc/jitsi/jicofo/"

Can anyone please reply the solution it is bit urgent.


Check that prosody config file is being read,

When I upgraded prosody I had to manually add,

Include "conf.d/*.cfg.lua"

to /etc/prosody/prosody.cfg.lua

So even when everything was ok, it was not reading my config file.


I have installed the jitsi meet on my server successfully, and everything is working fine. Now I need to embed the server using external api option, provided by Jitsi team. But when I try to connect to the server from my application using the javascript API, it gives me “refused to connect” error, while I can access the server as well as port 5437, successfully from my remote machine. Therefore:

  1. If i try to access the jitsi meet server using the configured URL i.e. https://server.domain…com I can successfully do so

  2. If I check whether port 5437 is open for remote connections using telnet command from my machine to the server where jitsi is installed, the connection is successful

  3. But when I try to connect to the jitsi meet server, using the javascript API, the connection gets refused. Below the the simple code I have used to connect

function startMeeting(){
const domain = ‘’;
const options = {
roomName: ‘Sample’,
width: 500,
height: 300,
parentNode: document.querySelector(’#jitsi-meet’),

appObj = new JitsiMeetExternalAPI(domain,options);


I have tried almost all the solutions provided in this regard in the community forum but with no success.

Also please note that in my jicofo/config file the JICOFO_HOST value is set to localhost while JICOFO_HOSTNAME value is set to server domain name.
In videobridge/config file the value JVB_HOST is not set …

I have tried after setting all these values also to my host server, still no luck …

As I am relatively new to JITSI, request to help & guide in this regard.

Thanks !!

Maybe upload js console logs, so we can see the error?
The only used ports from outside are tcp 443 for the https and udp 10000 to send media to the bridge.

Hi, thanks for your prompt reply. On console I have the below error, please note I am using apache as web server on linux (UBUNTU) …

" Refused to display ‘’ in a frame because it set ‘X-Frame-Options’ to ‘deny’ "

As far as I know, I can handle this by changing the header setting in .htaccess file … but is there any way I can verify by altering any setting in JITSI server, whether the page is displayed or not because the error displayed is “server refused to connect

PS: I have a laravel application running on port 443 on the same server, and I want to integrate the JITSI server in this application.
Both LARAVEL & JITSI are installed in the same server and are configured to be called using different domain names. Both are configured to be accessed using https and I can access both from my browser, without any issue. It is just when I try to use the external javascript API, I am facing this issue.


Hi … I resolved the issue by changing the header value of X-Frame-Options for apache … it now works fine and is successfully embedded.

Many thanks for your help !!