• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ;)

 
srinivas jangeti
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that for security reasons you will never know those information.
 
srinivas jangeti
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for reply,

i want to know, all the machine ip addresses connected to one LAN.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 490
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, ask your clients for the information. You can walk them through the steps to find it.
 
Ranch Hand
Posts: 86
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know this is old but I thought I'd throw my two cents in.

First it sounds like you are working in the role as technical support. Clients or employees call you when the video is freezing.  You want to get the "go to" information a client machine would contain that may cause the problem.

I am no expert in Java, but I'm learning.  

IMO you could build a Java server application that runs quietly in the background.  When started (or even periodically) it gets and stores the data.  Have the server listening on a predetermined port.  Have returns coded for each command.  For instance when sent "getRam". The server sends back the ram, remember the is more then just ram, there is total ram, available ram, ram being used.  

Then on your machine run a client program where it sends out requests to the ip address in question.  If you want to know the ram, send the getRam request and read the return.

If your on a company network then the program being installed can be a retired policy.  But if your dealing with clients on their own personal computers you would need to have them download and install your server.

This whole process opens up the client system running a server to the ability for an attacker to harvest information, especially if you have no encryption, password protection or user interjection procedures in place.

This could simply be the server application popping up a window saying "so and so wants to collect information from your machine, would you like to allow this?".

The server could be programmed in a way to send one encrypted, zipped, XML file containing all the data you want for a particular instance.  You could even have the server record specific data.

But this is a lot of work for something you could simply talk a client through looking!  

If your wanting this information as a means of collecting information on an IP address for future back attempts.  Well good luck getting help here, besides if hacking the other machine is your goal, then just this question tells us you lack the knowledge to do so at the moment.  Gaining remote access discreetly to another machine is very difficult!

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic