File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes socket method for all login systems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "socket method for all login systems" Watch "socket method for all login systems" New topic
Author

socket method for all login systems

feroz muhamed
Ranch Hand

Joined: Nov 15, 2003
Posts: 87
hello,
please let me know if any method in Java to know all the machines log on to a network.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Since this doesn't have anything to do with this forum (i.e. Swing/JFC/AWT), I'm moving this to the "Sockets and Internet Protocols" forum. Though, without some clarifying information, your question still doesn't have a good chance of being answered...
[ December 23, 2003: Message edited by: Nathan Pruett ]

-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

Probably has something to do with this post.. There is no functionality built into Java which will tell you the IP or hostname of every computer on a network. Windows makes use of platform-specific protocols to accomplish this feat.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
The only way I can think of is using subnet scan, which scans your network for any responding pcs.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

Originally posted by Adrian Yan:
The only way I can think of is using subnet scan, which scans your network for any responding pcs.

If you plan on doing this, definately clear it with your organization's network and security people first. Nothing makes network people jumpier than someone scanning the entire range of IP's.
What you probably should be doing, since you are working on a chat program, is use TCP/IP the way it was ment to be used, and have the client register with the server rather than the other way around.
feroz muhamed
Ranch Hand

Joined: Nov 15, 2003
Posts: 87
thanks all. i did it by executing net view command through java and checked whether it is running by getByName method if any machine is down exception occures and .....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: socket method for all login systems