Hi thanks for the info almost there but not quite,

It works almost but also picks up two ip addresses of:

0.0.0.0


So my final output is:

0.0.0.0
0.0.0.0
10.10.1.63

And for my program to work I can only have the one address. I tried changing the line:

If Not (queryObj("IPAddress") Is Nothing) Then

To:

If Not (queryObj("IPAddress") Is Nothing Or queryObj("IPAddress") Is "0.0.0.0") Then

but it still displays the 0.0.0.0's. Have you got a fix for this?


Thanks,
Max

and a few variations but that is not valid