"getaddrinfo: No address associated with hostname" when connecting to loopback
Issue
- Application returns error
getaddrinfo: No address associated with hostnamewhen connecting tolocalhost:
$ nc -6 localhost 12345
nc: getaddrinfo: No address associated with hostname
- Getting local host error even when run with user account or root
Environment
- Red Hat Enterprise Linux 6
- Network connection to
localhost
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
