Skip to main content
9 events
when toggle format what by license comment
Mar 18, 2022 at 8:52 comment added Stackerito You're right, when using /all it shows many more (the IPv6 addresses). So definitely that explains the originally 0.0.0.0 rule
Mar 18, 2022 at 8:37 comment added grawity_u1686 Also, don't forget about IPv6 – each of your interfaces has an IPv4 address and an IPv6 address (or several), which is like being connected to two networks at once; 0.0.0.0 would be IPv4-only, while :: is the same for IPv6-only. And in IPv6 it's common even for regular PCs to simultaneously have a "link-local" address (fe80), a "private" address (fdXX), and a "global" address (2xxx), so your ipconfig /all or ip addr is likely to show a lot of addresses.
Mar 18, 2022 at 8:33 comment added Stackerito Thank you! That was an awesome explanation 😯
Mar 18, 2022 at 8:32 comment added grawity_u1686 The second case, just as common, is when a single interface has multiple IP addresses, which you can just add whenever you want. (On Windows this is only possible in "manual" configuration mode, not when DHCP is used – but if you set it to manual, then the "Advanced" window will let you add as many IP addresses as you want – e.g. the host could be 192.168.10.15 and 192.168.10.16 at the same time, each address potentially having different things listening on the same port.) This is very common on servers, which may have several IP addresses doing different things on the same system.
Mar 18, 2022 at 8:32 comment added Stackerito Yes! thank you! (like when I type ipconfig I see the list of all network interfaces available and it's not just "my one pc"), you clarified everything, thank you!
Mar 18, 2022 at 8:30 comment added grawity_u1686 It's quite common. The first case is when the host has multiple network interfaces – even right now, your host has 192.168.10.15 on its Ethernet or Wi-Fi interface and 127.0.0.1 on the "loopback" interface (which would be invisible on Windows, but visible as lo in Ubuntu). If you had Wi-Fi and Ethernet connected, each would have its own address. You can configure the Ubuntu VM to have four virtual network interfaces (e.g. one NAT, one bridged, etc), and then it'd have 4 IPv4 addresses – or 5 if you count the lo interface with 127.0.0.1 on it.
Mar 18, 2022 at 8:26 comment added Stackerito That worked! Btw, I changed 0.0.0.0 to only 192.168.10.15. Out of curiousity, in what scenario can a host has many IP addresses? I mean my host right now is a single PC that only needs to listen to 192.168.10.15
Mar 18, 2022 at 8:23 vote accept Stackerito
Mar 18, 2022 at 8:18 history answered grawity_u1686 CC BY-SA 4.0