This implementation just falls back to giving a string representation of the IP. It supports IPv4 only. Add test for getnameinfo().