Resolution: To determine the IP address of the machine where the daemon is running we use the following method:
1) Retrieve IP information for all network interfaces; on Windows this is done using the registry. 2) Retrieve host name using gethostname => prints "Hostname: <name retrieved>" 3) Resolve the host name retrieved in 1) using gethostbyname => prints "Hostname IP address: <ip address retrieved>" 4) List all network interface addresses and verify that the host name of the machine matches one of the interfaces => prints "Detected IP interface: <ip address of interface (name of interface) >"