Open sadeghrz opened 7 years ago
See this pull request #41 and this issue #34.
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).
Session establishment failed on calling connect() method, because domain name and hostname is different... any fix?