-
Notifications
You must be signed in to change notification settings - Fork 21
Exception: No such host is known
Howard Durdle edited this page May 20, 2016
·
4 revisions
If your network does not provide DNS name resolution for your Harmony Hub you'll see this error when connecting to the IP:
Unhandled Exception: System.Net.Sockets.SocketException: No such host is known
at System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at HarmonyConsole.Program.Main(String[] args) in C:\Data\harmony-master\HarmonyConsole\Program.cs:line 80
The issue is with agsXMPP.net.ClientSocket.Connect()
making a call to Dns.GetHostEntry()
.
SOLUTION: Add a line in your hosts file (located in %WINDIR%\system32\drivers\etc
) mapping the Harmony Hub's IP to a name. For example:
192.168.0.50 HarmonyHub