1. Use `inet_ptongetaddrinfo` to replace `inet_addr`.gethostbyname` and use for loop to
2. Use `getaddrinfo` to replace `gethostbyname` and use for loop to
loop the address list and copy the first meet ipv4 address.
32. Use `getnameinfo` to replace `gethostbyaddr`.