Tuesday, September 11, 2001 10:52 PM
I'm not on an NT network right now to test this with, but presumably you could do something like this:
Process proc = Runtime.exec("cmd.exe /C net view");
InputStream in = proc.getInputStream();
You might then have to parse the output and find the IP addresses using nslookup.exe or ping.exe. This article
discusses some pitfalls around Runtime.exec().