3
0
I'm trying to investigate listening IPv6 sockets on an Ubuntu Server. I don't understand the difference between [::] and *.
Two questions on my mind:
- Ary there any difference?
- If not, why they appear in multiple representations?
$ ss --listening --tcp --ipv6
State Recv-Q Send-Q Local Addr:Port Peer Addr:Port
LISTEN 0 128 *:http *:*
LISTEN 0 128 *:8083 *:*
LISTEN 0 128 [::]:ssh [::]:*
LISTEN 0 128 *:19998 *:*
LISTEN 0 128 *:19999 *:*
Are you sure you executed ss with the --ipv6 parameter? I think * and :: mean the same (bind on all IP addresses) but the first is for ipv4 and the second ipv6 – HoD – 2019-09-10T11:04:36.367
what about this? https://serverfault.com/questions/444554/what-does-mean-as-an-ip-address-bracket-colon-colon-bracket
– BladeMight – 2019-09-10T11:20:31.207it actually truncates all zero'es and shows only
::
instead, so it must be localhost or so... – BladeMight – 2019-09-10T11:21:49.410