I need to get a list of all the network names that the user is connected to and the IP address of the computer on that network. I can get a list of network names using NetworkInformation.GetConnectionProfiles() and I can get a list of IP addresses using NetworkInformation.GetHostNames(), but I cannot figure out how to associate the two lists. I thought it would be through the NetworkAdapters but the IDs for those are different between the two different calls.
Does anyone know how to do this?
UPDATE: Just to clarify, I'm asking how to do this in a Metro app on Windows 8.
UPDATE 2: It turns out it was a bug in Release Preview. Now that we've switched to RTM everything worked without a single change to the existing code.