Renamed README to README.md
Changed to using getaddrinfo() to resolve address of gateway