wood burning stoves*
The moose likes Sockets and Internet Protocols and the fly likes how to get system information(like ram size,OS,OS version) using ip address in java 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 "how to get system information(like ram size,OS,OS version) using ip address in java" Watch "how to get system information(like ram size,OS,OS version) using ip address in java" New topic
Author

how to get system information(like ram size,OS,OS version) using ip address in java

srinivas jangeti
Greenhorn

Joined: Jan 22, 2009
Posts: 5
I want to know system information in LAN in my office(for network department.), like Ram size, OS, OS version etc..

if it is possible please do this possible.
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
Hi you can get all properties using this code snippet, look at the output and decide which is the key used for getting the OS name ;)



Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% - Story] [SCWCD - 94% - Story] [SCBCD - 80% - Story] | My Blog
srinivas jangeti
Greenhorn

Joined: Jan 22, 2009
Posts: 5
Thanks for reply,

I want to know these details(like Ram size, OS, OS version etc.) by giving IP address.

suppose,In LAN my machine ip address 10.1.2.167, & another machine ip address 10.1.2.168 like these..

From my machine i want to know the system information of 10.1.2.168. (Here ip address is the input.)

please do this needful.
Omar Al Kababji
Ranch Hand

Joined: Jan 13, 2009
Posts: 357
I think that for security reasons you will never know those information.
srinivas jangeti
Greenhorn

Joined: Jan 22, 2009
Posts: 5
thanks for reply,

i want to know, all the machine ip addresses connected to one LAN.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

There is no way to get the IP's of connected PC's with plain TCP/IP.
You can try "pinging" every possible IP on a network for a well-known service, but this is considered by most network administrators to be a hostile attack. Not to mention it would fail if the clients do not provide whatever service you are pinging for.
If you really want to get information on the network, either have your clients volunteer the information by registering with a central server when they start up or use a protocol which permits discovery, like Jini/Apache River

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

Joined: Jan 03, 2006
Posts: 490
nmap can get some of that, but it is hit and miss, such as OS and network detection. When it works you can get versions from it.

As for size of RAM, and things like that, you probably can't directly. Doing things like this are very "noisy", and if you don't have permission then it could land you in very hot water. You you are lucky, all that will happen is you lose your job.

If you have legitimate need, you could write a little server and push it out that collects these details and passes it to you, of course this is dangerous, you don't want to make hacker recon too easy.

I can't think of a legitimate reason why would would need to do get all this information in this manner. If you have a legit need to know it, you will have access to records, and possibly the machine itself. If you were security testing, the amount of RAM would be pretty worthless information, IMO.

"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra
S Lc
Greenhorn

Joined: Jul 03, 2009
Posts: 1
I have a need for knowing the amount of RAM for trouble shooting clients trying to stream high quality video, but not knowing enough about their PC to tell me how much RAM they have. Is there a way to get this information in any form or fashion?

Thanks
SC
Rusty Shackleford
Ranch Hand

Joined: Jan 03, 2006
Posts: 490
Yes, ask your clients for the information. You can walk them through the steps to find it.
 
 
subject: how to get system information(like ram size,OS,OS version) using ip address in java
 
Similar Threads
how to get system information using ip address in java
Reading system information
How can I show System Information On GUI using AWT/Swing
I need help in RMI to create Method.
How can I get System Information of Other PCs from My PC?