How to see whether a v4-mapped-on-v6 address is used for a listen socket?

Solution Unverified - Updated -

Issue

  • How to see whether a v4-mapped-on-v6 address is used for a listen socket?

For example, httpd listens using an ipv6 address as follows:

# netstat -antp | egrep "^Proto|:80"
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp6       0      0 :::80                   :::*                    LISTEN      3317/httpd          

However we can connect to the ipv4 address, since it is a v4-mapped-on-v6 address. See man IPV6(7) for details.

Environment

  • Red Hat Enterprise Linux 7
  • httpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content