Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Zielcomputer die Verbindung verweigerte [2404:6800:4008:c02::7d]:5222
Avatar
Maciej #1
Member since Jul 2012 · 12 posts
Group memberships: Members
Show profile · Link to this post
Subject: Trying to connect via 5222 and failing while using IPv6?
Hi Alex,

I am running into another problem. Users that have IPv6 activated on their Windows machines run into the following Exception while connecting to Google Talk from time to time.

[09:42:14.000 D] [ Sharp Messenger] Messaging socket error 'System.Net.Sockets.SocketException (0x80004005): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte [2404:6800:4008:c02::7d]:5222
   bei System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   bei agsXMPP.Net.ClientSocket.EndConnect(IAsyncResult ar) in c:\Users\<user>\Desktop\HB\Plugins\Sharp Messenger\agsXMPP\Net\ClientSocket.cs:Zeile 241.'.

I am asking myself whether setting the port explicitly like follows may cause this?

xmppConnection.Port = 5222;

Shouldn't the port be in hexadecimal for IPv6? In the exception above it is logged as decimal.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ports are not different with v6. Also agsXMPP should support v6 fine.
Do you have a full stacktrace?

Alex
Avatar
Maciej #3
Member since Jul 2012 · 12 posts
Group memberships: Members
Show profile · Link to this post
That's all output I am getting.
How do you force Windows 7 to use IPv6 for debugging? I used http://support.microsoft.com/kb/929852/de but it seems that all my queries and connection run via IPv4.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The IP adress is retrieved from the DNS server. When your DNS server supplies a v6 address and the OS supports v6 then agsXMPP tries to connect on v6 of course.
But as the error message sais it was not able to. So either your provider or the network infrastructure is not v6 compatible, or the DNS supplied a wrong address.

Alex
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:
Forum: agsXMPP RSS