rajendraimakwana / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

Can not connect to openfire #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create new project with jabber.net
2. Entering connection infos (server, user, password)
3. Connect with jabberClient1.Connect(); to an Openfire-Server 

What is the expected output? What do you see instead?
I expected, that i see on the server, that I am connected to the server,
but I only get in the logfiles from Openfire:

###
User tried to authenticate with this server using an unknown receipient:
<iq id="JN_1" type="set" to="10.60.49.37" from="debian01/73ffa345">
 <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
  <resource>10.60.49.37</resource>
 </bin>
</iq>
###

What version of the product are you using? On what operating system?

Latest version JabberNet-2.1.0.710 on Windows XP SP3, VS2005 with Openfire
3.6.2 on Debian

Please provide any additional information below.

I also get a certificate dialog if i connect (can click "ALLOW ONCE").

---

Could you help me?

Original issue reported on code.google.com by dschimei...@googlemail.com on 14 Jan 2009 at 9:22

GoogleCodeExporter commented 8 years ago
I just getting started with Jabber, but today I installed Openfire (OSX) and I'm
communicating with the JabberNet samples I've tried. 

Original comment by ksp...@gmail.com on 13 Mar 2009 at 8:04

GoogleCodeExporter commented 8 years ago
Looks like you're configured incorrectly.  Can you post what you expect your 
JID and NetworkHost to be?

Original comment by hil...@gmail.com on 13 Mar 2009 at 8:37

GoogleCodeExporter commented 8 years ago
Hi,

I was having the same error and it is solved by setting proper parameters from 
server and client.

I am pasting my code to make you understand more.

jc.User = "stb001@whdev1-pc"; // jid.User - avoid ip here.
jc.Server = "whdev1-pc"; //jid.Server - This cause problem. I used host name.
jc.Resource = "test"; // jid.Resource - any rsource name.
jc.NetworkHost = "10.0.0.152";  // NetworkHost - server ip or host

I am attaching screenshot in which you can see when one user send request the 
jabber.net client process request as shell command and send response back to 
another user.

Original comment by sunnyrajwadi@gmail.com on 14 Jul 2011 at 4:33

Attachments:

GoogleCodeExporter commented 8 years ago
jc.User should be just the node/localpart portion of the JID.  "stb001" in your 
example.

Original comment by hil...@gmail.com on 15 Jul 2011 at 9:45

GoogleCodeExporter commented 8 years ago
I also had this issue and fixed it by using the server's name instead of IP 
address. For example, I had OpenFire installed on localhost (127.0.0.1), but I 
had to specify my PC's name (home-pc) as the server for it to authenticate 
successfully, even if it could establish a connection with the IP address.

Original comment by krome...@gmail.com on 29 Nov 2013 at 11:04