The Artima Developer Community
Sponsored Link

Java Answers Forum
Network question

5 replies on 1 page. Most recent reply: Sep 23, 2003 4:21 AM by shon

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

Network question Posted: Sep 22, 2003 9:02 PM
Reply to this message Reply
Advertisement
do anyone know how to list out all pc that connects to the local computer using java code?
under Windows platform.

THanks


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Network question Posted: Sep 22, 2003 9:16 PM
Reply to this message Reply
I don't quite understand what you mean by "all pc that connects to the local computer ". However if it is windows platform you should be able to execute the "net view" command and get the result right?

shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

Re: Network question Posted: Sep 22, 2003 9:27 PM
Reply to this message Reply
i have to do a porgram which can listed all the pc details that connected to the local pc... which mean where the program installed.

for example :
the program install at pc1 .
pc2 ,pc3 ,pc4 connected to pc1 through LAN(local area network)

how to list out the details of those pc, pc2~pc4?
"net view" is a possible soluction .. but... how to implement into java ?
if not in windows platform ?

Thanks

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Network question Posted: Sep 22, 2003 10:07 PM
Reply to this message Reply
You can execute the net view command from a java program and process the results (String Manupulation). On a non windows system may be if you know the subnet you are in you can do a scan, like ping each IP and see whether there is a response.

http://forum.java.sun.com/thread.jsp?forum=49&thread=190073&tstart=0&trange=15

May be there is a better solution!!! If you find out let me know :-)

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Network question Posted: Sep 22, 2003 10:19 PM
Reply to this message Reply
The famous nmap (reloaded :-)

http://www.insecure.org/nmap/

this utility has a command prompt mode and you should be able to execute from a java program with the right switches and get the results. So scanning a range of IP should not be a problem.

shon

Posts: 42
Nickname: shon
Registered: Apr, 2003

Re: Network question Posted: Sep 23, 2003 4:21 AM
Reply to this message Reply
Thanks for ur help .... very very thanks

Flat View: This topic has 5 replies on 1 page
Topic: javaScript problem!!!! Previous Topic   Next Topic Topic: applets

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use