Jicofo 2020-04-19 01:04:09.876 SEVERE: [36] org.jitsi.meet.ComponentMain.log() java.net.ConnectException: Connection refused (Connection refused), host:localhost, port:5347
org.xmpp.component.ComponentException: java.net.ConnectException: Connection refused (Connection refused)
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:296)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:242)
at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:222)
at org.jitsi.meet.ComponentMain.lambda$getConnectCallable$0(ComponentMain.java:285)
at org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:174)
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:
If i try to access the jitsi meet server using the configured URL i.e. https://server.domain…com I can successfully do so
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
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
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.
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.
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.