I tell you the way round ...
Process p = Runtime.Runtime().exec("ipconfig");
or just type another command for finding what computers are connected to your computer ( see net commands )
if you have linux or something .... write the commands over ipconfig.