Sharp.Xmpp icon indicating copy to clipboard operation
Sharp.Xmpp copied to clipboard

Session establishment failed

Open sadeghrz opened this issue 8 years ago • 2 comments

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

sadeghrz avatar Apr 07 '17 19:04 sadeghrz

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

VitorCioletti avatar Oct 29 '18 20:10 VitorCioletti

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).

mabra avatar Jan 01 '20 02:01 mabra