Physical Address

A

Anabolik

Is there in java class or method to get Physical Address of computer
for Windows, Linux, Unix based system?
And if you can, please write example.
 
R

Romeo Kienzler

Is there in java class or method to get Physical Address of computer
for Windows, Linux, Unix based system?
And if you can, please write example.

Here the Example:

import java.net.InetAddress;
import java.net.UnknownHostException;

public class PlayGround
{
public static void main(String args[]) throws UnknownHostException
{
System.out.println(InetAddress.getLocalHost().getHostAddress());
}
}

Cheers,
 
R

Roedy Green

Is there in java class or method to get Physical Address of computer
for Windows, Linux, Unix based system?
And if you can, please write example.

did you mean the IP address or the machine address of some Object in
RAM?|
--
Roedy Green Canadian Mind Products
http://mindprod.com

"Patriotism is fierce as a fever, pitiless as the grave, blind as a stone, and as irrational as a headless hen."
~ Ambrose Bierce (born: 1842-06-24 died: 1914 at age: 71)
 
D

Daniel Pitts

Roedy said:
did you mean the IP address or the machine address of some Object in
RAM?|
Or the MAC address
Or street address of the building holding the computer?
Or the longitude and latitude?
 
T

Tom Anderson

Or the MAC address
Or street address of the building holding the computer?
Or the longitude and latitude?

Or a rather draining speech about the ultimate necessity of defeating the
Confederacy?

tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top