So how do you get a list of all the IP addresses bound to the local ethernet adapter? Easy use the built in global stack; GStack. All you need to do is add IdStack to your uses clause and your away!
uses
IdStack;
…
CheckListBox1.Clear;
CheckListBox1.Items := GStack.
Note that I’ve added the local loopback address manually.
Written on 24 Dec 2008 and categorised in Delphi, tagged as IP and GStack