This article is relevant for all C++ products
The BadHostUnknown error indicates that the hostname cannot be resolved. The operating system cannot resolve the hostname, or the hostname is incorrect.
The DNS is not configured properly.
A "ping <computer name>" will usually also not work.
In such cases, use the URL with the IP address to configure the session, or configure the name resolution (or edit the "hosts" file).