I installed an application in HP server that itself installs apache 2.4 web server.I gave ipv4 address to this application.

But I checked the status of this service in the server.I found that apache web server is listening by ipv6 type and on ports 80 and 443.

I fail to understand whether any problem occurs as application has ipv4 ip and service is listening by ipv6.

Server has RHEL 6.5

  • 5
    Listening IPv6 sockets on many BSD/Linux/etc systems are usually dual-stack sockets that can accept both IPv4 and IPv6 connections. No need to worry, it's not a problem :) Jan 18, 2017 at 21:57
  • ipv6 is easy to use when using base 85 tools.ietf.org/html/rfc1924
    – bgtvfr
    Jan 23, 2017 at 15:23

2 Answers 2


By default, Apache will listen on all IPs, both IPv6 and IPv4. This is defined by the Listen directive :

Listen 80

If you want to restrict it IPv4 only, change the setting to


This will limit Apache to listening only to IPv4 connections. Repeat this for port 443 if you want to stop Apache from listening for HTTPS on IPv6.


You can also disable IPV6 on the system :

edit /etc/sysctl.conf

 net.ipv6.conf.all.disable_ipv6 = 1
 net.ipv6.conf.default.disable_ipv6 = 1


  • 4
    You can but you really should not. Jan 18, 2017 at 21:30
  • Why? ipv6 sucks and has been implemented by brainless people. Every single computer works really well without ipv6. varnish-cache.org/docs/trunk/phk/ipv6suckage.html
    – bgtvfr
    Jan 23, 2017 at 9:31
  • 1
    Really? Those are truly minor issues. And no, every single computer does NOT work well without IPv6. Some people can't even get on the Internet without it. Don't blindly trust everything you read on some guy's web site. Jan 23, 2017 at 9:50
  • I trust this guy more than you : you really don't have the same level at all.
    – bgtvfr
    Jan 23, 2017 at 10:36
  • Of course everything he says is true. You have just vastly overestimated its importance. You still have a lot to learn. Jan 23, 2017 at 12:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .