Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Page: previous  1  2 
Avatar
Alex #16
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post ID 4475
another easy solution is also not configure the local server to the xmpp domain localhost or your workstation name, and use a domain like example.com or server.com. For this domain you can add an entry in your host file with a ipv4 address.

Alex
Avatar
huseyin #17
Member since Aug 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
hi Alex
i disabled ipv6
but it still give me error

No connection could be made because the target machine actively refused it fe80::2065:86a:3f57:fdb2%12:5280


   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at bedrock.net.AsyncSocket.ExecuteConnect(IAsyncResult ar)
Avatar
Alex #18
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by huseyin:
hi Alex
i disabled ipv6
but it still give me error

No connection could be made because the target machine actively refused it fe80::2065:86a:3f57:fdb2%12:5280


   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at bedrock.net.AsyncSocket.ExecuteConnect(IAsyncResult ar)

as you can see it still tries to connect to a v6 address.
Avatar
huseyin #19
Member since Aug 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
Hi alex,
i dasbled ipv6 internet connection and regedit bu it still give this error
i disabled ipv6 like here http://www.yazilimsozluk.com/Default.aspx?KonuId=1405
is it not enough to disable from connetion and regedit?
Avatar
huseyin #20
Member since Aug 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
What is wrong with my code?

i am using windows 7 as OS
and C:\Windows\System32\drivers\etc  this is my host file 127.0.0.1       localhost

and i disabled ipv6

and this is my .net code


User = txtUserName.Text;
            Pwd = txtPassword.Text;
            pnlCredentials.Enabled = false;
            jabberClient1.User = User;
            jabberClient1.Server = "127.0.0.1";//Huseyin-PC//localhost
            jabberClient1.Password = Pwd;
            jabberClient1.AutoRoster = true;
            jabberClient1.Port = 5280;
            rm = new RosterManager();
            rm.Stream = jabberClient1;
            rm.AutoSubscribe = true;
            rm.AutoAllow = jabber.client.AutoSubscriptionHanding.AllowAll;
            rm.OnRosterBegin += new bedrock.ObjectHandler(rm_OnRosterBegin);
            rm.OnRosterEnd += new bedrock.ObjectHandler(rm_OnRosterEnd);
            rm.OnRosterItem += new RosterItemHandler(rm_OnRosterItem);


and this is my ejabbeder server config

C:\Program Files (x86)\ejabberd-2.1.11\conf  /ejabberd.cfg  





{loglevel, 3}.


{hosts, ["Huseyin-PC"]}.




{listen,
 [

  {5280, ejabberd_c2s, [
            {certfile, "C:\Program Files (x86)\ejabberd-2.1.11/conf/server.pem"}, starttls,
            {access, c2s},
            {shaper, c2s_shaper},
            {max_stanza_size, 65536}
               ]},



  {5269, ejabberd_s2s_in, [
               {shaper, s2s_shaper},
               {max_stanza_size, 131072}
              ]},



  {5280, ejabberd_http, [
                         %%{request_handlers, [
             %%    {["web"], mod_http_fileserver}
             %%]},
             captcha,
             http_bind,
             http_poll,
             web_admin
            ]}

 ]}.




{auth_method, internal}.




{shaper, fast, {maxrate, 50000}}.



{acl, admin, {user, "admin", "Huseyin-PC"}}.


{acl, local, {user_regexp, ""}}.




{access, max_user_sessions, [{10, all}]}.


{access, local, [{allow, local}]}.


{access, c2s, [{deny, blocked},
           {allow, all}]}.


{access, c2s_shaper, [{none, admin},
              {normal, all}]}.


{access, s2s_shaper, [{fast, all}]}.


{access, announce, [{allow, admin}]}.


{access, configure, [{allow, admin}]}.


{access, muc_admin, [{allow, admin}]}.


{access, muc, [{allow, all}]}.
{access, muc_create, [{allow, local}]}.


{access
Avatar
Alex #21
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by huseyin:
  1. User = txtUserName.Text;
  2. Pwd = txtPassword.Text;
  3. pnlCredentials.Enabled = false;
  4. jabberClient1.User = User;
  5. jabberClient1.Server = "127.0.0.1";//Huseyin-PC//localhost
  6. jabberClient1.Password = Pwd;
  7. jabberClient1.AutoRoster = true;
  8. jabberClient1.Port = 5280;
  9. rm = new RosterManager();
  10. rm.Stream = jabberClient1;
  11. rm.AutoSubscribe = true;
  12. rm.AutoAllow = jabber.client.AutoSubscriptionHanding.AllowAll;
  13. rm.OnRosterBegin += new bedrock.ObjectHandler(rm_OnRosterBegin);
  14. rm.OnRosterEnd += new bedrock.ObjectHandler(rm_OnRosterEnd);
  15. rm.OnRosterItem += new RosterItemHandler(rm_OnRosterItem);

This code is not from one of our libraries. Please contact the vendor of this library or use our MatriX library.

Alex
Avatar
huseyin #22
Member since Aug 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,
i used many xmpp libraries(matrix,agsxmppp vs....) especialy agsXMP sample MiniClient   but altough i disabled ipv6  the error ise same

jabber ID: admin@huseyin-pc
port 5280

No connection could be made because the target machine actively refused it fe80::18ff:2fc2:3f57:fdb2%12:5280
Avatar
Alex #23
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
1) XMPP defaukt port is 5222, you connect to 5280
2) your dns server still return ip address fe80::18ff:2fc2:3f57:fdb2%12 for localhost which is a ipv6 address.
3) you have 2 listerers on the same port (5280) in your server config. This cannot work.
4) when 3 libraries don't work then the fault is definitely on your side (server config)

As long as you don't fix this it will not work.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page: previous  1  2 
Forum: agsXMPP RSS