I’m developing an application and I want to get the host name from an IP address.
I am using gethostbyaddr function, but the firewall on the machine the application is running pops up with a warning that my application is trying to access the network. There is another function for this, getnameinfo, and the pop up doesn’t appear, but it only works for XP or later. On Windows 2000 the pop up still appears.
Is there any other function that works on Win 2000 that I can use?