Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Irdis #1
Member since Sep 2012 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: Can't connect via VPN
When i try to connect the demo apps to any jabber server i catch several exceptions ("No DNS server found", "System error").  But other xmpp clients which i have on my computer work well. I suspect it heppens because I have VPN connection.
My agsXMPP version 1.1.0.0.
My ipconfig /all: [deleted] :P
This post was edited 2 times, last on 2012-09-10, 19:29 by Irdis.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
agsXMPP is using the following code to find your DNS servers:

  1. public static List<IPAddress> DnsServers
  2. {
  3.     get
  4.     {
  5.         var dnsServers = new List<IPAddress>();
  6.         var interfaces = NetworkInterface.GetAllNetworkInterfaces();
  7.         foreach (var eth in interfaces)
  8.         {
  9.             if (eth.OperationalStatus == OperationalStatus.Up)
  10.             {
  11.                 var ethProperties = eth.GetIPProperties();
  12.                 var dnsHosts = ethProperties.DnsAddresses;
  13.                 dnsServers.AddRange(dnsHosts);
  14.             }
  15.         }
  16.         return dnsServers;
  17.     }
  18. }

Then its using the 1st DNS server to lookup the SRV records. It does not try all DNS servers when there are multiple.
You can checkout the sources and debug it on your system.

Alex
Avatar
Irdis #3
Member since Sep 2012 · 10 posts
Group memberships: Members
Show profile · Link to this post
seems reasonable, thx...
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