Try something like this:
Add the System.Net namespace to your file, then:
Call DNS.GetHostName
- To get the local machine's TCP/IP hostname
Call IPHostEntry.AddressList(machine name)
- To get an array of IPAddress objects for the local machine. Remember that a machine can have more than one card, and possibly several virtual addresses
For each IPAddress object in the array (use a foreach() on it):
if (!ia.IsLoopback()) {
// Is a real IP address
}
Hope this gets you started.
Chip H.