Is this the name of the car or what?

I have a third-party dll that should return the name of the machine. Sometimes it returns

\\John-PC

it returns several times

\\192.168.1.120

and recently I found that it returns something like this

\\[ef80::32d6:2255:27dd:123c]

So what is the third option?

If this is not a mistake or MAC orelse, can I convert it to \ 192.168.1.120 and have fun ???

+3
source share
3 answers

This is the IPv6 version of the IPv4 address 192.168.1.120 . I also like how your DLL seems hesitant with what needs to be returned.

+14
source

This is IPv6 . IPv6 allows you to leave partitions equal to 0, therefore ::.

+3
source
0

Source: https://habr.com/ru/post/1763609/


All Articles