smiley22 / S22.Xmpp

S22.Xmpp is an easy-to-use and well-documented .NET assembly for communicating with an XMPP server. It supports basic Instant Messaging and Presence funtionality as well as a variety of XMPP extensions.
MIT License
54 stars 91 forks source link

Not able to connect #8

Open bibhusundarparida opened 8 years ago

bibhusundarparida commented 8 years ago

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

pgstath commented 8 years ago

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