Awesome AnDrEw
Member
I've basically finished a program I have recently started, and so at this point I am just fine-tuning everything and "dressing up" the program a bit before deployment. My question is regarding getting the local IP of the computer in IPv4 format. I've read a few snippets of code using loops to list all of them, but I'm after the usual 192.*.*.* IP scheme.
In my tests I'm using "Dns.GetHostAddresses(Dns.GetHostName)(3).ToString", which outputs 192.168.1.47. In some of the other examples I've read people suggest using a value of 0, which displays the information in a different format on my computer. If I use the current line keeping the value of 3 will this appear differently on others' computers, or can it stay this way?
In my tests I'm using "Dns.GetHostAddresses(Dns.GetHostName)(3).ToString", which outputs 192.168.1.47. In some of the other examples I've read people suggest using a value of 0, which displays the information in a different format on my computer. If I use the current line keeping the value of 3 will this appear differently on others' computers, or can it stay this way?