MAC Address

Discussion in 'Java' started by AntoS, Sep 3, 2003.

  1. AntoS

    AntoS Guest

    Is it possible in some way to know the MacAddress of the Client?
     
    AntoS, Sep 3, 2003
    #1
    1. Advertising

  2. AntoS

    Roedy Green Guest

    On Tue, 02 Sep 2003 23:37:52 GMT, "AntoS" <> 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.
     
    Roedy Green, Sep 3, 2003
    #2
    1. Advertising

  3. 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" <> wrote in message
    news:kR95b.6151$...
    > Is it possible in some way to know the MacAddress of the Client?
    >
    >
    >
    >
     
    Richard Huddleston, Sep 3, 2003
    #3
  4. AntoS

    Rene Guest

    "AntoS" <> 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
     
    Rene, Sep 3, 2003
    #4
  5. On Wed, 03 Sep 2003 08:30:45 +0000, Rene wrote:

    > "AntoS" <> 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
     
    Steve Horsley, Sep 3, 2003
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roy Abarca

    Re: getting the MAC Address

    Roy Abarca, Jul 24, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    474
    Roy Abarca
    Jul 24, 2003
  2. SJ

    MAC Address/Physical Address?

    SJ, Jan 7, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    539
  3. Roman =?ISO-8859-15?Q?Bl=F6th?=

    Senseless rendering: Mac.Mozilla != Mac.Netscape6.01 ?!?!

    Roman =?ISO-8859-15?Q?Bl=F6th?=, Jul 2, 2003, in forum: HTML
    Replies:
    1
    Views:
    1,010
    Steve Pugh
    Jul 2, 2003
  4. mangm
    Replies:
    2
    Views:
    761
    mangm
    Dec 1, 2005
  5. K Richard Pixley
    Replies:
    3
    Views:
    352
    Ned Deily
    Jan 3, 2012
Loading...

Share This Page