-
Notifications
You must be signed in to change notification settings - Fork 51
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 #34
Comments
I'm also using openfire 4.0.2 on Win 2012 R2 an it's working fine (but mine are named the same). As a temporary fix you could modify your hosts file so that your machine domain matches your server name. Are you if sure this is happening in EstablishSession() on connect and not on authenticate? Also could you post a pastebin of the exception details? It might be of help us solve this. |
Thanks for your answer here is the complete stack trace:
|
Oups i didn't notice I had an old version on my test project, I changed to the last library release and the exception persist:
|
Well i had same issue and solved it by modifying Library source code. Basically cause for the issue is Library could not able to do "Session Establishment" [XMPP RFC 3921, Section 3] if Host name and Server Name is different. To solve, i suggest you to do following modification in Library source code.
|
This is quite a significant bug and i'm surprised not to have seen this more. Thanks for the tip - i will fork and mod the source. |
Any updates on this? What is this Server Name? |
nairbijesh - can you please post the actual code for the necessary change? Thanks, |
@stevenlivz actually have done a nice job to fix this. See #41. |
Hello
I use openfire 4.0.2 on windows 7 and sharp.xmpp to communicate with the server. Everything worked fine during the testing phase when i used the same name for hostname and server name. I used the example of xmpp connection found in the documentation.
I tried to reinstall the server using a different name for server name and I am unable to connect to the server. The instruction client.connect() rise an exception of type: Exception:Sharp.Xmpp.XmppErrorException: Session establishment failed.
I saw that issue #9 already talks about this exception and tried to enable log plugin to have more
information about the bug, but logs are totally unreadable.
Is there any special configuration to change when both server and host name are different or did I miss something ?
The text was updated successfully, but these errors were encountered: