Isn't possible to get MAC address using java

I am trying to get the MAC address of my pc using java code. It seems that i am only able to get the ip address. Can anyone help?

Use JNI or Runtime.exec(). For the latter you would need to find an OS command line tool and then parse the output.

Similar Messages

  • How to get MAC address using java code

    hi friends
    please write me, How can I get MAC Address of local machine using java code.I don't want to use JNI.
    Please reply me. Its urgent for me
    Thanks in advance
    US

    You have several ways under *nix
    ifconfig -a | grep HWwill output something like
    eth0      Lien encap:Ethernet  HWaddr 00:11:FF:74:FF:B4combined with Runtime.getRuntime().exec("")and Process.getInputStream()you should be able to read it easilly.
    Under Windows (and Linux of course) try jpcap (http://sourceforge.net/projects/jpcap)
    You can also use jnative as a generic tool (http://sourceforge.net/projects/jnative)
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Get mac address in a container or zone non-global

    I am developing an aplication in c/c++ and in global machine I can get mac address, but in zone non-global don't.
    I have to get the mac address in zone non-global? If so, how?
    Thanks

    Igor_freitas wrote:
    I am developing an aplication in c/c++ and in global machine I can get mac address, but in zone non-global don't.
    I have to get the mac address in zone non-global? If so, how?A non-global zone using a shared-ip stack doesn't have rights to network connection. So you can't easily query the network device directly.
    You can probably run 'arp -a' in the zone and look for your zone's hostname. That's pretty close.
    Darren

  • How to get MAC address list and HDD serial number from Windows and MAC machine?

    Hi,
    I'm developing a AIR application. I'm implementing the product key mechanishm. I need to identify the users' machines uniquely. I chose MAC address would be a better way. But a computer has list of MAC addresses including LAN card and Wi-Fi card addresses. So, I need to get the list of available MAC addresses from the computer and the Hard Disk Drive's serial number. HDD serial number would be helpful to cross verify the identity.
    I'm able to get the MAC address using NetworkInfo class. But I need to get a list of available MAC addresses and HDD serial number.
    Is there any classess to accomplish this task?
    Thanks in advance.

    See if this link can be of a little use to you.
    http://www.adobe.com/devnet/air/flex/articles/retrieving_network_interfaces.html#ionComHea ding

  • Get MAC Address...

    How get MAC Address of a computer using SQL Query....help me....

    Hello Sukanta,
    I concur with SBH above. I do not believe that there is a way in SQL or PL/SQL to get the MAC address.
    Also, in multihomed computers, there would be as many MAC addresses as there are NICs present. Therefore, if MAC addresses where to be obtained, they would likely have to come up from a table (and a MAC address table surely does not exist in Oracle.)
    If you are looking for some sort of unique identifier, you may be able to create one using some combination of DBID, SYSDATE and a randomly generated number.
    HTH,
    John.

  • "failed to get MAC address for machine"

    here is the jist of things.
    installed leopard and have it pimped out to my personal specs. I like where everything is and how things are working. No issues. just so you know, i only use WIFI for internet, i share with the guys upstairs. In order to get wifi on my machine, i use a USB dongle. works great no issues with it ever, well until i physically broke it. No big deal. So i replaced it with another one, different drivers/chipset worked.. And since i installed leopard i only backed it up once with TM, i dont care for daily/hrly backups, weekly is fine for me. Now after 2 weeks and a new usb network card. TM gives me an error. i click on the little red i and it says "the backup volume could not be found" so googled and searched the forums not much help, so i tried and formated my ext drive repaired and click on TM again, same error. In the error log in console, right after i turn on TM i get this error, "failed to get MAC address for machine" then 180 secs later, TM fails. again, and again.
    Can anyone tell me where i can find what MAC address its looking for??? ethernet has never been plugged in to my machine ever. its only been online via USB wifi. Im really lost here, i dont know what i can do.. im sure if i try another drive ill get the same error. please help if you can.. much appriciated.
    Jamie

    yeah i get a 'failed to get mac address' message too. what's weird is that it seems that leopard 'broke' my ethernet (there was no mac address, couldn't connect to the internet through ethernet after a clean install), and then 10.5.2 'fixed' it. for some reason, i have an 'ethernet 2' heading in system preferences that works correctly and has a mac address and everything, while the regular 'ethernet' tab doesn't work at all. however, i still get this time machine error. i don't understand why time machine is so incredibly fickle. sorry, i'm really of no help to anyone, other than adding another voice to the frustration.

  • How to get MAC address from IP address in LAN

    Hi all,
    How to get MAC address from IP address in LAN (windows or any OS), I would have all IP addresses of my LAN, so I would like to know all MAC address.
    Code examples are highly appreciated.
    Thanks & Regards,
    abel...

    abel wrote:
    Yeah that is only working for local system, but how to get remote system's MAC ..?
    Thanks for quick reply ...
    Edited by: abel on Jan 28, 2009 12:10 AMIt is my understanding that only one person ever found the holy grail which you seek. But sadly [_he's dead_|http://forums.sun.com/profile.jspa?userID=649366]
    As a curious aside how did you manage to get the list of IPs?

  • Get mac address in container or zone

    I am developing an aplication in c/c++ and in global machine I can get mac address, but in zone non-global don't.
    I have to get the mac address in zone non-global? If so, how?
    Thanks

    Are the mechanisms the same to extract the mac address from the zone as it would be on the global zone?
    What I mean is, programaticaly, would the same code that extracts the mac address of an interface from the global zone work within a non-global zone, or does the zone need to have priviledges set for this to be allowed?
    Edited by: Asgaroth on Jun 19, 2008 12:42 AM

  • Get mac address in zone or container

    I am developing an aplication in c/c++ and in global machine I can get mac address, but in zone non-global don't.
    I have to get the mac address in zone non-global? If so, how?
    Thanks

    Are the mechanisms the same to extract the mac address from the zone as it would be on the global zone?
    What I mean is, programaticaly, would the same code that extracts the mac address of an interface from the global zone work within a non-global zone, or does the zone need to have priviledges set for this to be allowed?
    Edited by: Asgaroth on Jun 19, 2008 12:42 AM

  • WRT54GL V 1.1 : how to reserve IP for specific MAC address using DHCP

    My !free! made in China router have this functionality. And yet I have been banging my head with this new reasonably expensive wireless router from Linksys. Anyway I lug my notebook around. I need my home router to be able to automatically configure notebook IP address using DHCP. At the same time I need the ip given by home router through DHCP to be the same IP all the time. So "static" ip is not the solution. Alternative "static" ip is also not a solution. Anything with the word "static" in it is not a solution. I know about third party firmware (wrt or tomato) and I know WRT54GL can be flashed with this third party firware. But I'm not going to void my warranty. This will be my last option but not the solution that I seek. I would like to know how to reserve ip for specific mac address using DHCP for WRT54GL V1.1. If this version have no way to make such configuration, I would like to know if there is official firmware upgrade that address this. Thanks in advance!

    LDK-Anc wrote:
    Tonik - For the life of me, I cannot find DHCP Reservation on the WRT300N. I'm currently configuring one and it would be really useful if I could fine it. Maybe LinkSys calls it something else, but I don't really see anything resembling it. Help!
    Maybe these could help. (Images extracted from the User Guide)
    Setup tab: Basic Setup
    DHCP Reservation
    Message Edited by denman_v2 on 03-25-2008 05:11 PM

  • How can i get system variable using java

    Hi,
    I just want to know how can i get system variables using java code.
    for example i want to get the the date for today or i want to get the number of processes that's running.
    Thanks alot

    Hi,
    I just want to know how can i get system variables
    using java code.
    for example i want to get the the date for today or i
    want to get the number of processes that's running.
    Thanks alotSome generic "system variables" are available though Java, usually through the System class.
    Date today = new Date();
    is instantiated with the current date and time.
    Other system values, like environment values, should be passed to java through the command line (-D option) by setting system properties.
    Finally, platform specific values like the number of processes running will have to be written in platform specific code and executed by JNI (java native interface).
    Java is platform or system agnostic. Common system values, like time, are implemented. Hopefully you won't need platform specific values.

  • How to get MAC Address of a stolen laptop by using Serial number?

    Hi my Lenovo G560 laptop was stolen on 17/04/13. I have the serial number. In order to trace the laptop, I need the MAC address. Unfortunately I don't know the MAC address of my stolen laptop. My question is, is it possible to get the MAC address by using serial number? 
    Serial Number: xxxxxxxxxx
    Moderator Note; s/n edited for member's own protection

    hi Subrahmanya,
    Sorry to hear about your trouble. Unfortunately, the only way to get the MAC address is to run a query on the unit (physically or or remotely). Using the serial number to query information on the system will list the devices that are included on the unit (this doesn't include the MAC address).
    Regards,
    neokenchi
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to get MAC ADDRESS in mais.asc using FMS

    Hello,
    i need to get the Mac Address of every machine connected to my fms, is that possible with FMS?
    THX

    It's also available in System Information, under the Network section.
    Hold down option and select System Information from the Apple menu.
    Select Network, then the particular service type: Airport, Ethernet, Firewire
    Scroll down till you see MAC Address:
    You can also reveal it in the Terminal with ifconfig. en0 is usually ethernet, en1 is Airport, but that depends on your configuration.

  • Get MAC-address of IP Phone using CallManager Express

    Good evening,
    at the moment I am developing some XML-services for Cisco IP Phones. Now I want to personalize some pages and to make that reality I need the MAC-address of the IP Phone to verify the user.
    After a lot of research I found out how to do it with CallManager (use #DEVICENAME# in the url), but I didn't found out how to do it with CallManager Express. I have tried the solution for CCM in CCME, but that didn't work out. So, my question is: How can I get the MAC-address of an IP Phone with CallManager Express?
    Greetings.

    you only have to use #DEVICENAME# when you are using a CallManager IP phone service. Under CME, simply set your services URL and the phone will automatically append the ?name=SEPXXXXXXXXXXXX parameter for you. If you configure your services URL on CME as http://10.1.1.1/MyApp the request will be http://10.1.1.1/MyApp?name=SEPXXXXXXXXXXXX
    (where SEPXXXXXXXXXXXX is the device name of the phone making the request)
    C

  • Getting Mac Address of Windows 7 Machine

    Hi all,
    Our application used to gather the Mac address of the client machine. For this purpose, i was using the Java bean(ClientInfos.fmb) to get the information. It used to work fine until
    the OS was Windows XP. As soon as the Windows 7 has come, the application/java bean could not collect the mac address.
    Pls let me know if there is any working for this problem.
    Even if there is any other alternative, I would love to adopt.
    One of the solution, I was thinking that to run a client_host command using webutil, write the output in a notepad. Get the mac address from the notepad.
    If it is possible, give me some clue,so that i can fight it down.
    Thanks & Regards,
    Alok Dubey

    There are likely several ways to accomplish this. You will need a custom java bean or webutil. WebUtil does not have a built-in function that can do what you want, but it will give you access to the system and/or registry. The problem with which you are faced is that some machines may have more than one net adapter and therefore more than one mac. Anyway.... you can use the CLIENT_HOST command to execute this Windows command:
    GETMAC*
    You can also execute GETMAC /NH+ and the data will be displayed without the column headers. If you write this info to a temp text file on the client, you can then read it with CLIENT_TEXT_IO. Use the pl/sql substr function to exact whatever part of the info you want to use.
    More info about the above command can be found on the MS website here:
    http://technet.microsoft.com/en-us/library/bb490913.aspx

Maybe you are looking for

  • New H535s with Win 8.1

    I have just bought a new H535s with Win 8.1 - Do you know if there is a recovery section already built into the system or do I have to back up the whole system myself (using a lot of space) thanks in anticipation Solved! Go to Solution.

  • Smart form Driver Prog For Printing Invoice Lists

    Hi Sap Gurus, I am using the standard Sap drver prog RLB_invoice which is used for all invoices(ie Invoice,credit,debit,cancellation).Now,plz can anayone let me know the driver pgm used for printing invoice list smartform. will the RLB_INVOICE serve

  • Automatic assignments of accounts were missed(ao90)

    Hi All, Can you please guide me how to assign automatic assignment of accounts which are configured in AO90.. the error is 700 assets were desposed in one invoice where customer is debited and 700 assets were credited with same GL account as a machin

  • Ecc 6.0 on completely free os and db

    hi, can sap ecc 6.0 be installed on a completely free OS and db.  it seems like the only supported versions of linux are suse and redhat, which both cost money. could it be installed, but just not supported on something like ubuntu? this is for a san

  • What are your favorite apps/new features you like after the 2.0 upgrade?

    I discovered one feature by mistake, after finally getting my iPhone going again! I pressed the top button and home button at the same time once and saw a white flash on the screen! It turns out it works like a print screen button!! Very cool! Whatev