pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

Session establishment failed #58

Open sadeghrz opened 7 years ago

sadeghrz commented 7 years ago

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

VitorCioletti commented 5 years ago

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

mabra commented 4 years ago

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