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

Not able to connect

Open bibhusundarparida opened this issue 9 years ago • 1 comments

Bleow is the code snippet and the error message received XmppClient xmpp = new XmppClient("113.19.87.195", 5222, true, null); xmpp.Username = "nil"; xmpp.Password = "nil"; xmpp.Connect();

ErrorMessage- Unrecoverable stream error: host-unknown

bibhusundarparida avatar Jan 15 '16 08:01 bibhusundarparida

S22.Xmpp and Sharp.Xmpp primarly support host names. There is a pending pull request for Sharp.Xmpp that supports connection with IP Addresses. However, IMO, a much better solution is to hardcode a DNS entry at /etc/hosts or the Windows equivelant, assigning a host name to your XMPP server address

pgstath avatar Jan 20 '16 11:01 pgstath