MAC Address

R

Roedy Green

Is it possible in some way to know the MacAddress of the Client?

There was a long thread on this a few weeks back. You might find in
with a http://groups.google.ca/ search. We have found the API in
Win2k to fetch it. It is rather involved. You would need JNI to
interface with it. Keep in mind there are machines on the NET with an
IP but no MAC address.
 
R

Richard Huddleston

as far as i know, there is no way in java to do this. sorry.

the best you could do would be to capture some information from an external
process and parse the output. like in windows capturing the output from
"ipconfig /all"

rich
 
R

Rene

AntoS said:
Is it possible in some way to know the MacAddress of the Client?

If "Client" means remote end, then the answer is most likely a no - and
that is not restricted to only JAVA, its a networking thing.

MAC Adresses are sort of a local delivery address. They don't survive the
first hop (router) on a network. They are only directly visible and valid
in a LAN.

Iff your Client is a piece of software that is guaranteed to be in the same
segment as the server-code, then there are some tricks to get the MAC
address, but they all involve either JNI or runtime.execute()'ing an
external program.

CU

Rene
 
S

Steve Horsley

If "Client" means remote end, then the answer is most likely a no - and
that is not restricted to only JAVA, its a networking thing.

MAC Adresses are sort of a local delivery address. They don't survive the
first hop (router) on a network. They are only directly visible and valid
in a LAN.

Iff your Client is a piece of software that is guaranteed to be in the same
segment as the server-code, then there are some tricks to get the MAC
address, but they all involve either JNI or runtime.execute()'ing an
external program.

CU

Rene

What's more, if your client is on a dial-up modem, or is a mobile
phone, or is connected via ATM then it doesn't even _have_ a MAC address.

Steve
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top