Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session establishment failed #58

Open
sadeghrz opened this issue Apr 7, 2017 · 2 comments
Open

Session establishment failed #58

sadeghrz opened this issue Apr 7, 2017 · 2 comments

Comments

@sadeghrz
Copy link

sadeghrz commented Apr 7, 2017

Session establishment failed on calling connect() method, because domain name and hostname is different...
any fix?

@VitorCioletti
Copy link

See this pull request #41 and this issue #34.

@mabra
Copy link

mabra commented Jan 1, 2020

Just my three pence: A JID never contains a host (or server-)name, its always the domain. The right way to find the hostname ist to make a DNS request for the domain (in/from the JID) and obtain the XMPP records from DNS. Many libs are failing here, because on Windows, there is no build-in chance to do this (lack of features of .Nets dns class).
So agsXmpp has "AutoResolveConnectServer" (bool) and, alternative, a "ConnectServer" method (and they have an internal custom dns-query).
This can be shown via host (or DIG):
> host -t SRV _xmpp-client._tcp.mbg.local
_xmpp-client._tcp.mbg.local has SRV record 10 0 5222 xmpp1.mbg.local.
(This is my internal config, where "xmpp1" is the current experimental host)

I just upgraded my OpenFire from 3.6.x to 4.4.x and all my loggers are failing (with agsXMPP). So I just tried S22 which fails miserably too - big malaise.
I am finding no other lib for use in C# (Net).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants