(newbie) prosody server not responding to remote machines

400 views
Skip to first unread message

Joe Foley

unread,
Nov 14, 2015, 11:46:54 AM11/14/15
to Prosody IM Users
I just set up Prosody on my server according to the instructions. I can't connect to it using any XMPP client software that I've tried, or any other software to test the same port.

From the server, "telnet localhost 5222" gives

<?xml version='1.0'?><stream:stream id='' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xmlns='jabber:client'><stream:error><not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>Connection closed by foreign host.

which I suppose is normal. From the remote client machine, "telnet my-server 5222" just times out. The local telnet command adds the "client connected", "not-well-formed", etc. entries to /var/log/prosody/prosody.log. The remote telnet command does not cause the log to change at all. However, "tcpdump port 5222" on the server shows repeated activity when I try to connect from the remote client machine, so the requests are definitely making it all the way to the server. Other services on the server are responding normally to the same remote client machine.

How can I troubleshoot this?

Matthew Wild

unread,
Nov 14, 2015, 2:17:40 PM11/14/15
to Prosody IM Users Group
Welcome!
This sounds very much like either a firewall or DNS issue. You didn't
mention what platform you're on, but assuming Linux-based or
similar...

Check that Prosody is listening where you expect, with:

netstat -nlpt | grep 5222

You should get a line like:

tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN 2918/lua5.1

If you have a firewall active, check it, and/or check iptables -L

Check the IP address in DNS matches an entry in 'ip addr show'. It
happens that people find themselves connecting to the wrong server
sometimes :)

Let us know how it goes.

Regards,
Matthew
Reply all
Reply to author
Forward
0 new messages