Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Networking

 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Can anyone please tell me if there is any way to find the names of all the computers in a LAN through Java API.
Actually I have to make a customized NetSend program for which I have to gather all the computer names in a LAN.
Thanks
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm thinking you might have to resort to performing a "Runtime.exec()" of the "net view" windows command and parse the results to get the computer names (assuming your on windows platform).
[ April 09, 2003: Message edited by: James Swan ]
 
Anirban dutta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, It worked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic