How to see whether a v4-mapped-on-v6 address is used for a listen socket?
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.