Getting Mac address

hi all
is there any way to get the mac address of Network Interface Card. i need it in my form application
thanks

Hi,
not from Forms directly and I doubt you can do this from Java. If so, you could use the Java Importer to obtain this information. Otherwise you can call out to C as well from Forms.
Frank

Similar Messages

  • 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 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)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

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

  • 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

  • How to get Mac Address of Remote Computer

    Hi All,
    I tried to find out a solution for finding Mac Address of a remote system, then first i tried with finding it with local address using the following code it works fine for me.
    public class MacAddressFinder {
         public static void main(String[] args) {
              try
                   InetAddress ipAddr = InetAddress.getLocalHost();
                   System.out.println("Current IP address : " + ipAddr.getHostAddress());
                   NetworkInterface nwIntf;
                   try
                        nwIntf = NetworkInterface.getByInetAddress(ipAddr);
                        byte[] hwAddr = nwIntf.getHardwareAddress();
                        System.out.print("Current MAC address : ");
                        StringBuilder sb = new StringBuilder();
                        for (int i = 0; i < hwAddr.length; i++)
                             sb.append(String.format("%02X%s", hwAddr, (i < hwAddr.length - 1) ? "-" : ""));          
                        System.out.println(sb);
                   } catch (SocketException e) {
                        e.printStackTrace();
              catch (UnknownHostException e) {
                   e.printStackTrace();
    But when i tried this piece of code in jsp with the following code i am getting NeworkInterface object value as null and there by i am unable to get the Mac Address of a remote computer.
    InetAddress ipAddr = InetAddress.getByName(request.getRemoteAddr());
    NetworkInterface nwIntf = NetworkInterface.getByInetAddress(ipAddr);Can you please suggest me how to find out the Mac address of remote system?
    Thanks,
    Uday

    first of all, NetworkInterface only exposes the NetworkInterfaces of the local computer. secondly, you cannot find the mac address of an arbitrary remote computer. that information is not available outside of the local subnet. and java doesn't expose a way to discover it even for computers on the local subnet.

  • How to get mac address?

    I have used NetworkInterface.getNetworkInterfaces() for get list of interfaces
    but under xp I not read interface informations.
    Is possible that the problem is permission level of user?
    Thanks.

    Some call in Java are OS dependent and work better on some OS than other. If there is a permissions issue it is at the OS level and Java would not be aware of it. (But I doubt this is the case)
    It is possible that information is not available under windows.
    However you can call "ipconfig /all" and parse the MAC address from that.

  • How to get MAC Address of my stolen HP-15d103tx laptop

     I do have my Serial No-[Moderator edited Serial] and product no- G2G48PA#ACJ. My laptop has been stolen on 2nd April 2015. When i lodge a F.I.R with police they told me to submit the MAC address of the Laptop. Is there any way to know my mac address? Please suggest .

    Alok_456 wrote:
     I do have my Serial No-[Moderator edited Serial] and product no- G2G48PA#ACJ. My laptop has been stolen on 2nd April 2015. When i lodge a F.I.R with police they told me to submit the MAC address of the Laptop. Is there any way to know my mac address? Please suggest .
    If you didn't write it down the first time it will almost next to impossible to find it also this doesn't gurantee in any way you can get your laptop back either. MAC is only good if you wrote it down or registered it but if none of this is written down. And if you don't have tracking software installed the chances of getting it back is harder to get it back. So unless you see it being sold by someone or online this is the only real way you can track it down.
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

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

  • How to get MAC address from client machine ?

    Hi dear,
    We are implementing security measures for a banking system, so it is required that we track the MAC address of the registered clients along with other parameters. How do we get the MAC address from client machine using ADF or running scripts in client side?
    thanks all

    Hi,
    Welcome to OTN.
    Your question has nothing to do with ADF as such. Googling would give you plenty of such topics.
    -Arun

Maybe you are looking for

  • Apple no longer supports internet explorer 6

    When I tried to sign into Apple support this screen shot is what came up on my iPad 4. Is there a problem with my iPad since I have never had this happen before. Also the whole forum section looks completely different since the last time I signed in.

  • SMARTFORM TO PROTECT THE PAGE BRAKE

    HI experts, in my main windoor,fotter has a 10 lines of text....i want all the text in one page.ie. if the first page is filled with the main data and only 2 lines in the footer text can be printed in first page ..then instead a printing that 2 line

  • Tooltip for mousedragged

    I did a program in applet..I want to set tooltip for the drawing..i.e.,when the oval is dragged its new co-ordinates should be displayed by using the tooltip..How can i do this.. .import java.awt.event.MouseListener; import java.awt.event.MouseMotion

  • Cancelling BT landline because it is too expensive

    I just received my BT landline bill today and it is £65.21 despite the fact that I used it very little over the past 3 months.   This is because of the advanced line rental so I have decided to cancel my landline rather than keep paying for something

  • Changing Platforms

    I have Photoshop CS6 and recently purchased a MAC computer. Photoshop is loaded on a PC and I would like to switch the program from a PC to a MAC. What is the best way to do this?