lol yeah the `::` in IPv6 is a dead giveaway. Another trick for how to identify IPv4 vs IPv6 is to check the subnet mask. IPv4 uses stuff like `255.255.255.0`, while IPv6 doesn’t even bother with that format.
Also, if you’re coding, most languages have libs to parse IPs. Python’s `ipaddress` module can auto-detect the version for you. Saves a ton of headache.
Also, if you’re coding, most languages have libs to parse IPs. Python’s `ipaddress` module can auto-detect the version for you. Saves a ton of headache.
