Tech Tip: Network is unreachable: connect to listener errors appear in the httpd-errors log file

Document created by kk_sup Employee on Nov 13, 2014Last modified by SamCreek on Dec 17, 2016
Version 2Show Document
  • View in full screen mode

The following error can appear in the $NH_HOME/web/httpd/httpd-errors log file:

(128)Network is unreachable: connect to listener on [::]:80

*The port number above can differ, depending on the http port being used (80, 8080, etc.)



On systems where IPv6 is supported by the underlying Apache Portable Runtime library, Apache gets IPv6 listening sockets by default. Additionally, the Listen, NameVirtualHost, and VirtualHost directives support IPv6 numeric address strings (e.g., "Listen [fe80::1]:8080").



Apache is trying to bind to localhost via IPv6 and can't resolve it on systems which don't have an IPv6 address. By explicitly listing the IP and port number it's possible to disable IPv6.


To suppress these messages:


1) Edit the $NH_HOME/web/httpd.tpl and add the directive:




where "xx" is the port the web server is listening on, between the
"# Custom Protect Section" and # End Custom Protect Section comments.

These comments must remain intact.


Any entries between these comments are added to the httpd.conf file when it is regenerated.



# Custom Protect Section
# End Custom Protect Section


2) Regenerate the httpd.conf file as outlined in TEC1194509.