I am running example.dart on emulator and connecting to ejabberd on localhost.
I got the connection to work by subbing the host parameter in XmppAmountSettings with the IP address from ifconfig, while keeping localhost as the domain. However, the connection is dropped when the ejabberd server doesn't seem to receive the response to the challenge for the SASL authentication.
Any idea why? Many thanks in advance! Thank you for creating this package.
UPDATE: I think my issue could also be with using a certificate from an untrusted authority, as Adium prompts me to continue to connect -- but in that case,
1) should not ejabberd be showing that the authentication failed for that reason (& not a timeout)
2) what can we do to accept untrusted connections for testing purposes / avoid this issue?
I am running example.dart on emulator and connecting to ejabberd on localhost.
I got the connection to work by subbing the
host
parameter in XmppAmountSettings with the IP address from ifconfig, while keeping localhost as the domain. However, the connection is dropped when the ejabberd server doesn't seem to receive the response to the challenge for the SASL authentication.Any idea why? Many thanks in advance! Thank you for creating this package.
UPDATE: I think my issue could also be with using a certificate from an untrusted authority, as Adium prompts me to continue to connect -- but in that case,
1) should not ejabberd be showing that the authentication failed for that reason (& not a timeout) 2) what can we do to accept untrusted connections for testing purposes / avoid this issue?
xmpp_dart log:
ejabberd log:
Here are truncated logs for a complete handshake for the same server with desktop Adium client, in case it is helpful: