Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#18514 closed defect (duplicate)

Having trouble connecting to with Tor Messenger

Reported by: legind Owned by:
Priority: Medium Milestone:
Component: Archived/Tor Messenger Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I maintain I'm having some trouble connecting to it with Tor Messenger, I keep on receiving a "The server closed the connection" message.

I definitely get a connection through with Tor, so it's not my server blocking the exit node:

legind@X1 ~ $ torsocks curl
<?xml version='1.0'?><stream:stream id='' xmlns:stream='' version='1.0' xmlns='jabber:client'><stream:error><not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>

And the error console doesn't show anything useful for debugging. I'm able to connect to and gchat accounts, so it's not user error.

I'm running Tor Messenger 0.1.0b5, and the server is running Prosody 0.9.10.

Child Tickets

Change History (5)

comment:1 Changed 4 years ago by arlolra

You can enable debugging logs in Preferences > Advanced > Config Editor, set purple.debug.loglevel to 1.

Here're the relevant stanzas though. Tor Messenger sends,

<?xml version="1.0"?><stream:stream to="" xmlns="jabber:client" xmlns:stream="" version="1.0">

Prosody responds with,

<stream:stream xmlns="" id="" version="1.0">

However, if I telnet and send the stanza,

λ telnet 5222
Connected to
Escape character is '^]'.
<?xml version="1.0"?><stream:stream to="" xmlns="jabber:client" xmlns:stream="" version="1.0">
<?xml version='1.0'?><stream:stream id='' xmlns:stream='' version='1.0' xmlns='jabber:client'><stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve</text></stream:error></stream:stream>Connection closed by foreign host.

I wonder why we don't see a This server does not serve in the logs?

Anyways, to fix your problem, when creating your account, set the username to username and domain to, and then when you get to advanced options in the account creation wizard (3rd pane), open the xmpp options and set the server to That seems to work for me.

comment:2 Changed 4 years ago by arlolra

This is probably a duplicate of #17461

Last edited 4 years ago by arlolra (previous) (diff)

comment:3 Changed 4 years ago by legind

Thanks arlolra, that worked for me.

comment:4 Changed 4 years ago by legind

Resolution: duplicate
Status: newclosed

comment:5 Changed 4 years ago by arlolra

Great. I'm still a little curious why I wasn't seeing that response in the debug logs though ...

Note: See TracTickets for help on using tickets.