# XMPP clients can't connect

**URL:** https://forum.yunohost.org/t/xmpp-clients-cant-connect/9944
**Category:** Support
**Tags:** metronome, english
**Created:** [January 1, 2020, 8:26pm UTC](https://forum.yunohost.org/t/xmpp-clients-cant-connect/9944 "2020-01-01T20:26:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![EssDub](https://forum.yunohost.org/user_avatar/forum.yunohost.org/essdub/32/10824_2.png) [@EssDub](https://forum.yunohost.org/u/EssDub)
#### Post date: [January 1, 2020, 8:26pm UTC](https://forum.yunohost.org/t/xmpp-clients-cant-connect/9944/1 "2020-01-01T20:26:01Z")

</div>

Hi there! I’m having some trouble setting up XMPP. As far as I can tell, I’ve configured DNS records correctly, but XMPP clients won’t connect to the server and I’m not seeing anything in my logs.

### My YunoHost server

**Hardware:** Old laptop or computer  
**YunoHost version:** 3.6.5.3  
**I have access to my server:** Through SSH and webadmin. I also have direct access to the server if needed.  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance?:** no

### Description of my issue

I want to be able to connect to my server using XMPP clients. When I try, however, the clients can’t connect.

My YunoHost server is up and running. I’m using Cloudflare’s DNS services, and this morning, I added the following records:

```auto
_xmpp-client._tcp 3600 IN SRV 0 5 5222 mydomain.com.
_xmpp-server._tcp 3600 IN SRV 0 5 5269 mydomain.com.
muc 3600 IN CNAME @
pubsub 3600 IN CNAME @
vjud 3600 IN CNAME @

```

When I try to log in to the server using XMPP clients, the clients can’t connect. I’m using these credentials:

- **user:** [spencer@mydomain.com](mailto:spencer@mydomain.com) (this is my _non-admin_ username on the server)
- **pw:** [my user password on the server]

I’ve tried this in both Dino (Linux) and Conversations (Android), and neither of them connect.

My logs aren’t showing much. The most recent entries in `metronome.log`are:

```auto
an 01 11:51:02 general	info	Hello and welcome to Metronome version 3.12.0
Jan 01 11:51:02 general	info	Metronome is using the epoll backend for connection handling
Jan 01 11:51:02 portmanager	info	Activated service 's2s'
Jan 01 11:51:02 portmanager	info	Activated service 's2s_secure'
Jan 01 11:51:02 portmanager	info	Activated service 'c2s'
Jan 01 11:51:02 portmanager	info	Activated service 'c2s_secure'
Jan 01 11:51:02 portmanager	info	Activated service 'http'
Jan 01 11:51:02 portmanager	info	Activated service 'https'
Jan 01 11:51:02 mod_posix	info	Successfully daemonized to PID 23675
Jan 01 11:51:02 upload.mydomain.com:http_upload	info	URL: <http://upload.mydomain.com:5290/share>; Storage path: /var/lib/metronome/http_file_upload

```

And the latest entries in `metronome.err` are from December 26. Since they haven’t recurred since then, I assume they’re resolved:

```auto
ec 26 18:34:22 certmanager	error	SSL/TLS: Failed to load '/etc/metronome/certs/localhost.key': Check that the path is correct, and the file exists. (for localhost)

```

I’d appreciate any help troubleshooting this so that my XMPP clients can connect properly.

Thanks!

---

<div class="post-metadata">

### Author: ![EssDub](https://forum.yunohost.org/user_avatar/forum.yunohost.org/essdub/32/10824_2.png) [@EssDub](https://forum.yunohost.org/u/EssDub)
#### Post date: [January 2, 2020, 6:42am UTC](https://forum.yunohost.org/t/xmpp-clients-cant-connect/9944/2 "2020-01-02T06:42:34Z")

</div>

I figured it out. My router did not have port forwarding records for ports 5222 or 5269. I added those, following [tips from this page](https://yunohost.org/#/isp_box_config), and it solved it!

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [January 17, 2020, 6:42am UTC](https://forum.yunohost.org/t/xmpp-clients-cant-connect/9944/3 "2020-01-17T06:42:35Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
