I can't use gethostbyname
to grab a host's IP address, it is a deprecated function that only works 10% of the fricken' time on Windows!
I can't find any adequate resources on other ways to find a host's IP address using other functions (MSDN recommended getaddrinfo
but that doesn't seem like what I want.)