Switch from inet_pton() to getnameinfo() for portability

Windows XP is supported again