Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > MAC Address

Reply
Thread Tools

MAC Address

 
 
AntoS
Guest
Posts: n/a
 
      09-02-2003
Is it possible in some way to know the MacAddress of the Client?




 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      09-03-2003
On Tue, 02 Sep 2003 23:37:52 GMT, "AntoS" <(E-Mail Removed)> wrote or
quoted :

>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.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
 
Richard Huddleston
Guest
Posts: n/a
 
      09-03-2003
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

"AntoS" <(E-Mail Removed)> wrote in message
news:kR95b.6151$(E-Mail Removed)...
> Is it possible in some way to know the MacAddress of the Client?
>
>
>
>



 
Reply With Quote
 
Rene
Guest
Posts: n/a
 
      09-03-2003
"AntoS" <(E-Mail Removed)> wrote:
> 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

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service New Rate! $9.95/Month 50GB
 
Reply With Quote
 
Steve Horsley
Guest
Posts: n/a
 
      09-03-2003
On Wed, 03 Sep 2003 08:30:45 +0000, Rene wrote:

> "AntoS" <(E-Mail Removed)> wrote:
>> 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


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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differnce between setting mac address port security under theinterface vs. the mac address-table global command ttripp Cisco 5 02-05-2010 10:49 PM
PIX Firewall MAC address VPN IP address Julian Dragut Cisco 1 02-07-2006 07:57 AM
MAC Address/Physical Address? SJ ASP .Net 0 01-07-2006 12:59 AM
obtaining the IP ADDRESS of an IP POHNE by its MAC ADDRESS ProgDario Cisco 17 05-06-2005 02:32 PM
Senseless rendering: Mac.Mozilla != Mac.Netscape6.01 ?!?! Roman =?ISO-8859-15?Q?Bl=F6th?= HTML 1 07-02-2003 10:23 AM



Advertisments