How to get a mac address in any OS

Hi all
is there a way in java to get the mac address of machines on a local network (similar to the way arp -a on windows returns ip's but also their physical mac address) but working on any os so the java ap can run on windows, linux, osx for example.
basically i want to be able to enter an ip range and have a method return each mac address for each ip address in the range (for ip addresses that exist)

thanks for the link
is this basically the only way to do this then? by querying local system methods of getting mac address info?
there is no built in java way of doing it?
still very useful link :)

Similar Messages

  • How to get the MAC address of the additional 10G NIC with ILO command line

    how to get the MAC address of the additional 10G NIC with ILO command line?
    thanks.
    This question was solved.
    View Solution.

    Hi Bruce,
    Out from what I can find on this network card is it not possible to get the mac address without a OS. I would recommend you to get/burn a Linux/Ubuntu live CD/DVD and run a Ifconfig in there.
    Hope it helps you.
    Best regards
    Zincas
    I work on behalf of HP

  • How to get the MAC address of  other hosts in local net

    1. Is there any kerner or user function to get the MAC address of other hosts in local net?
    2. ire_route_lookup() can only lookup MAC in routing table(arp -a),Is there any way to enable it to find out all MAC of hosts in the local net?
    Best Regards
    Hann

    ChristianEC wrote:
    Hi,
    I am looking for a way to get the MAC address of a PXI RT controller. I know that there is a VI to do this, but I am looking for a solution for a dll (C-Code).
    I use the "Call library node" to call this dll and want to make sure that it is only used on a specific PXI.
    Since the VI provides the functionality, I am wondering if it is also available to be called from C-Code?
    Thank you,
    Christian
    If it is available in LabVIEW it is probably available in CVI, which you could then build into a DLL (if there isn't one available already).
    CLA, LabVIEW Versions 2010-2013

  • How to get the MAC address of a PXI in a dll

    Hi,
    I am looking for a way to get the MAC address of a PXI RT controller. I know that there is a VI to do this, but I am looking for a solution for a dll (C-Code).
    I use the "Call library node" to call this dll and want to make sure that it is only used on a specific PXI.
    Since the VI provides the functionality, I am wondering if it is also available to be called from C-Code?
    Thank you,
    Christian
    Solved!
    Go to Solution.

    ChristianEC wrote:
    Hi,
    I am looking for a way to get the MAC address of a PXI RT controller. I know that there is a VI to do this, but I am looking for a solution for a dll (C-Code).
    I use the "Call library node" to call this dll and want to make sure that it is only used on a specific PXI.
    Since the VI provides the functionality, I am wondering if it is also available to be called from C-Code?
    Thank you,
    Christian
    If it is available in LabVIEW it is probably available in CVI, which you could then build into a DLL (if there isn't one available already).
    CLA, LabVIEW Versions 2010-2013

  • How to get the ip address of any terminal

    Hi
    Actually, I want to monitor all the users who are connected to the database using toad. Here is the sql statement used:
    SELECT s.SID,
    s.serial#,
    s.command,
    s.machine,
    s.terminal,
    p.spid,
    s.osuser,
    s.program,
    s.USERNAME
    FROM v$process p, v$session s
    WHERE p.addr = s.paddr AND s.program = 'toad.exe'
    ORDER BY s.TERMINAL
    This will give me the name of the terminal, but i need to know about the IP-Address of that particular system.
    Is there any way to get the ip address of any terminal.
    Please suggest me something regarding this.

    Hi,
    See this thread.
    Hi i want to cliente machine name who is accesing the EBS
    Hi i want to cliente machine name who is accesing the EBS
    And, your other thread.
    Is it possible to trace unauthorized users? (via ip address or terminal id)
    Re: Is it possible to trace unauthorized users? (via ip address or terminal
    Regards,
    Hussein

  • Getting clients MAC address !!!

    Is there any mechanism in Solaris where we can get the MAC address of an another system
    Which is newly connected to the network (same subnet)
    Situation is : a new system with out OS and its connected to the network, with out going to the console
    of this system how to get the MAC address of it.
    May be its possible may be not, anyway we are doing some testing and we have come across an issue.
    Thank you.
    VCP

    If the system is set to boot from the network, which is the way that a lot of out-of-the-box Sun systems used to be (don't know if they still are), you could at least perform a rudimentary snoop of the network to see if there are any ARP/RARP requests that happen to appear when the system is turned on. You'll be able to see the resulting MAC address in the request. But, again, the system has to be set to boot from the network fr this to work.
    Otherwise, I don't know of any way other than the console itself.

  • How can I get the MAC address of my Apple TV?

    How can I get the MAC address of my Apple TV? I currently do not have an HDMI device to connect it to, and the MAC is not listed on the box or the Apple TV itself.
    (to answer the obvious, I am trying to pair it with an iPad, and I need to register the Apple TV for the network so the two can see each other)

    As long as I know java doesn't have support to work on link-layer, only internet and transport layers. You may write simple native code. On windows, IP Helper functions, like SendARP allow you to pass an IP address and get the hardware address. You store the hardware address on your database/file and later, when that machine is off, you send a frame to the address you stored previous.
    [http://msdn.microsoft.com/en-us/library/aa366071(VS.85).aspx]
    I haven't seen it on Linux, but if you need help let me know I'll check the Linux API's too.

  • Is there any possible ways to get the MAC address?

    Hi guys:
    I am writing servlets on the server side. Is there any possible ways to get the MAC address when a HTTP request come in? Thank you very much for any helps.
    all the best!

    It is usually impossible to get the MAC address of the maker of a HTTP request in any programming language or system.
    At best, you can get the MAC of the closest intervening router, firewall, whatever.
    Are you sure you mean the MAC address? MAC looks like this: 8:ab:f0:0:71:bb:90 (Ethernet), or 01-23-45-67-89-ab (Token Ring), etc, depending on your network type.
    In contrast, an IP address looks like this: 209.249.116.195. If you want the IP address, check out the javadoc for HttpServletRequest and ServletRequest. Caveat: load balancers, web caches, proxy servers, etc will mask the "true" peer's address. Don't do anything silly like try to use the IP address for security or authentication.

  • How do I get the MAC address from my iPad?Thanksss.

    How do I get the MAC address from my iPad?Thanksss.

    Settings -> General -> About -> Wi-Fi Address
    Regards.

  • How to get Client IP address in oracle apps. Are there any API's.

    hi,
    I have one query
    ->How to get Client IP address in oracle apps. Are there any API's.
    regards,
    krishna

    Hi,
    this is very usefull
    however are this data stored on the db or is only a temporary view?
    I would like to have to keep track of all client connected.
    Thanx a lot

  • How can i get local MAC address?

    How can i get local MAC address or desk ID?
    thanks a lot;

    How can i get local MAC addressUse the command line command ipconfig or ipconf (depending on o.s.)
    or desk ID?Look at the desk and see if it has a number on it.
    (Untested as my desk doesn't have an id)
    thanks a lot;Your welcome.

  • Trying to setup wifi, how do I get the mac address from ipod touch 5th gen?

    trying to setup wifi, how do I get the mac address from ipod touch 5th gen?  cannot get to the setting screen as it is trying to connect to itunes.

    If yo are setting up the iPod vai wifi you have to connect to a network that does not use MAC address filtering.
    After it is set up yu can get the MAC from Settings>General>About>WiFi Address

  • Can I get the Mac address in Audit logs of Active directory server for the user's machine which connect to the network/Domain

    Hello All,
    I am trying to get the information of all the user's who connect to our Domain network by signing in using the domain account. For this I am using the Windows audit group policies ( I am not sure of there is any other way). I can see when the user tries
    to login to the network there is a audit event created on the AD/DC server. I can see the Kerberos authentication and logon/logoff events in the audit events under event viewer.  
              However the info which is being populated in these events include :- Hostname, IP address, Username and so on... But I can't see the MAC address of the user machine/system. Is there any way I can
    get the Mac address of the endpoint system as its one of the important criteria for our project.
    Any inputs on this would be appreciated, incase if there is any other way other than group policies please suggest.
    Thanks,
    Kavish

    > include :- Hostname, IP address, Username and so on... But I can't see
    > the MAC address of the user machine/system. Is there any way I can get
    > the Mac address of the endpoint system as its one of the important
    > criteria for our project.
    If you use DHCP, you can query the DHCP server. There's no builtin
    method to get the MAC address directly.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to verify VPLS mac-address forwarding

    I think VPLS know how to forward by mac-address. but how to verify it ?
    for example I show mac-address vlan 100. But I can not find a command to verify How mac-address is forwarding ?
    at 6509:
    PA_C76_1>sh mpls l2transport vc
    Local intf Local circuit Dest address VC ID Status
    VFI PA-LA-test VFI 203.160.227.88 100 UP
    VFI PA-LA-test VFI 203.160.227.95 100 UP
    PA_C76_1>show mac-address-table vlan 100
    Legend: * - primary entry
    age - seconds since last seen
    n/a - not available
    vlan mac address type learn age ports
    ------+----------------+--------+-----+----------+--------------------------
    * 100 000b.45b6.bc40 dynamic Yes 95 Router
    * 100 0012.d946.59c1 dynamic Yes 10 Gi4/1

    Hi,
    VPLS provides the medium to for a E-LAN, and in Cisco implementations, the MAC learning is not actually done by a VPLS instance.
    This can be best explained by an example.
    PE(SW)-A ---- PE(SW)-B
    PE(SW)-C
    Now these three PE nodes under VPLS, are only provided the medium to connect to each other using P2P PW forming a full mesh.
    For simplicity you can assume they are three switches connected in the above manner using copper. So this copper connecitivity is provided by VPLS.
    And at the end of the day the end nodes learn mac addresses using the conventional method of flooding and learning. So you wont find any VPLS specific commands to see what mac address is the VPLS instance flooding. As its only providing a medium for connectivty. And the flooding is done by the end nodes. as they treat the VPLS VC as one of the outgoing port.
    HTH-Cheers,
    Swaroop

  • Get Hardware (Mac) Address through Applescript

    Hi All,
    How can I get Hardware (Mac) Address using applescript. Please tell me how can I do it. I have searched in the dictionary but I found nothing there.
    Why I need it, I have developed some tool for InDesign & Quark User. I want to add the mentioned module in my application, so that as user will run the tool it will first validate the Hardware address, and if it match then application will run otherwise it will show a piracy message.
    Thanks
    Rajeev

    >get if addr en0 failed, (os/kern) failure
    Then you don't have an active interface. You can't use ipconfig to query an interface that isn't up.
    You need to decide how you want to deal with this - you won't know in advance what interfaces the user may have active. For this reason, relying on the MAC address is inherently problematic. You might be better off using the system's serial number (which is less likely to change anyway):
    <pre class=command>set serialNum to do shell script "system_profiler SPHardwareDataType| awk -F: '/Serial/ {print $2}'"</pre>

Maybe you are looking for

  • Delete messages from server when deleted from iTouch doesn't work

    Hi everybody, Two questions really... One is that with my 2nd gen iTouch I was able to set IMAP settings and it would show all of the folders (other than Inbox) that I have created on my mail account. The 4th gen iTouch doesn't seem to let me see the

  • Can't get sound to play using audio line in

    I am trying to play audio from my iPhone by connecting mini plug cable to the headphone jack and the audio line-in mini plug.  The input level indicator in System Preferences > Sound is showing that audio is playing but I don't hear sound.  I do have

  • The printer wont print on photo paper why is that

    The printer keeps printing on paper instead of photo paper

  • Need help for cursor

    Hi I have a pl/sql block..which is having one cursor with a select statement. This select statement will return values when proper values passed..sometimes it will return null. When it return null, I have to insert "invalid code " value into a table.

  • MMR Replica Busy Error on consumers

    hi, MMR environment solaris 2.9 ids 5.1sp2 servers - aq001pd (M) aq002pd (M) aq003pd (S) aq004pd (S) frequently see the following error for both consumers from the second master aq002pd.. cn=replicate-isp-to-aq004pd-slave-ro, cn=replica, cn="o=isp",