How to find MAC Address in Java, Windows Environment

Dear All,
How to find the MAC address of a machine, provided the IPAddress of the machine.
Thnx in advance..

Generally you can't. MAC addresses do not travel through routers.
For computers on your local subnet: connect to the computer somehow so that your computer knows the MAC, then run the command "arp -a" with Runtime.exec() and parse the output.
Or write a program/servlet that runs on the remote computer and returns that computer's MAC (or some of the MACs for computers with several network cards.)

Similar Messages

  • How to find mac address of a client computer in specified time and port in WIFI WCS Control system

    how to find mac address of a client computer in specified time and port in WIFI WCS Control system

    WCS record-keeping is very crude.  
    You'll get the time/date when the client authenticated.  You'll get the local inside address but you'll need the router to translate the outside IP address and the port.  
    You will need a proxy server to determine what sites did a wireless client goes.

  • 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 find MAC address for WAN port for Airport Express 2nd Gen.

    The New Airport Express has a LAN and a WAN ethernet ports. How can I find the MAC address for the WAN ethernet port as my Service Provider needs it for provisioning....I can fid MAC address for Ethernet and for two wireless 2.4 & 5GHz but not for WAN ethernet port using Airport Utility 6.1

    Many thanks for the swift response. However, there is no WAN MAC address on the box or on the device anywhere. I even used magnifying glass to find one .
    The airport utility shows only three mac addresses. One for 2.4GHz, one for 5GHz and one fo the ethernet (LAN port) whereas there is another ethernet port in the device mentioned as WAN port and I am still not able to find the MAC address for the WAN ehternet port for Airport Express (2nd Generation).
    Will appreciate a response to make th device work wiht my service provider as providing them the WAN mac address is a must. Had there been an option for cloning mac address, the issue would have not been there.
    Many thanks again - in advance.

  • How to find mac address with 10.7.2 on macbook air

    my dorm doesnt have wifi we r required to sumit our mac address in order to connect to use internet with internet cable
    i have an air with 10.7.2 and bought a ethernet adapter still can find my mac address.........plz help me

    Use the System Information. To get to this, go to the Apple menu, select About this Mac, and click the System Report button.
    In the left column go to Network and select Wifi. Under interfaces select en1 and look for the MAC address.
    Alternatively you can use System Preferences > Network > Wi-Fi > Advanced button > Hardware tab > MAC address.
    Best of luck.

  • How to find MAC address on Apple TV (newest one)?

    I'm trying to find the MAC address on my apple tv 3rd Generation. Any ideas? I've gone through the settings on it but can't seem to find it. It's up-to-date but no luck. Thanks!

    Under settings in the network config options menu.

  • How to find MAC-Address of a device using ADF mobile?

    Hi,
    I am developing an mobile application using ADF Mobile. The application necessitates the use of MAC Address for further development.
    Android SDK provides an easy way to find the MAC Address as:
    WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
    WifiInfo wInfo = wifiManager.getConnectionInfo();
    String macAddress = wInfo.getMacAddress();
    Is there a similar way in ADF mobile to retrieve the MAC Address of the device?
    Regards,
    Joseph

    This cant be done.

  • How to check MAC address from host from local network

    Hello,
    I must save information about my network enviroment, at some periods of time (IP, Host Name, MAC Address, and later some information from SNMP). I have IP addresses of all devices. Could any one have an idea how to check MAC address. In java.net.* I didn't find anythink about my problem.
    Please give my an answer, if you konow any solution.
    Marcin Kowalski

    hi !
    I've typed ipconfig on my PC which has windows2000 pro. as the OS!!
    but i couldn't get th line you've mentioned "Physical Address" !!
    what could be wrong .. ?!! hope you could help!!
    thanks!!
    C:\>ipconfig
    Windows 2000 IP Configuration
    Ethernet adapter
    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 10.130.128.210
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 10.130.128.1

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

  • How to find the listener port on windows?

    Hi Friends,
    We have a client who is still using Oracle 8.0.6 on NT 4.0
    I have a laptop with oracle client 10g.
    I want to connect to the NT database to check it.
    How do I know what port does the listener used ? what is the command to run at the c:\ command prompt?
    I tried> c:\ lsnrctl stat but the command is not recognized
    I tried to find the lsnrctl and bin but there is not.
    Please help
    Thanks a lot

    ytterp2009 wrote:
    Please help.. and please do NOT post [duplicate posts|http://forums.oracle.com/forums/thread.jspa?threadID=935282&tstart=0]
    How to find the listener port on windows?The Internet Protocol stack comes with a number of utilities - one of these, called netstat, is very useful to determine which processes are doing what to which IP ports on that platform. Unfortunately, different flavours are implemented. So the Windows one does not support the parameters and output than the Unix/Linux one.
    You can use the following on Windows (run it via a command console) to see what processes are listening on what address and port number:
    c:\> netstat -n -a -p tcp
      -n = display IP addresses and ports in numeric format
      -a = list all ports (including ones used for listening
      -p tcp = only display protocol entries for TCP An Oracle listener entry should look something as follows:
    Proto   Local Address  Foreign Address   State
    TCP     0.0.0.0:1521   0.0.0.0:0         LISTENINGSeeing IP +0.0.0.0+ means that the Listener is accepting connections on all your network interfaces - which is standard. The port number is typically 1521. The foreign address is meaningless for a port in listening state.
    PS. Why not simply check the listener.ora configuration file? Because what is actually happening may not be what you thought you configured to happen..

  • How to find and install right java for ECC6 intstallation on AIX5.3

    Hello
    I wander how to find and install right java for ECC6 intstallation on AIX5.3. I went thruroughly thru note 723909 and underlying 716927, 1008311 and 1039948 notes but I still do not understand.
    I guess I should logon to IBM site http://www.ibm.com/developerworks/java/jdk/aix/service.html
    where I can choose :
    " Java 1.4.2 64-bit "
    and then :
    "64-bit SDK 1.4.2 base images (at 1.4.2.0 level; in installp format) "->"Base SDK (required)
    Java14_64.sdk.tar  ((50001920)
    then I assume (on AIX ) I should "tar xvf Java14_64.sdk.tar".
    then I get extracted "Java14_64.sdk"
    Is this ok?
    I know on Linux(
    from IBM site I downloaded "IBMJava2-amd64-142.rpm"
    then I issued
    "rpm -i IBMJava2-amd64-142.rpm "
    and finally issued
    "export JAVA_HOME=/opt/IBMJava2-amd64-142")
    What in case of AIX5.3? Could you help me?

    I was told to use smitty (just I am not familiar with it). furdermore i do not hace read.me file. the ziped files are:
    Java14_64.ext
    -rw-rr 1  202 bin    371712 Mar  2  2010 Java14_64.license
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.ja_JP
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Ja_JP
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.ko_KR
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.zh_CN
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Zh_CN
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.zh_TW
    -rw-rr 1  202 bin      3072 Mar  2  2010 Java14_64.msg.Zh_TW
    -rw-rr 1  202 bin   4888576 Mar  2  2010 Java14_64.samples
    -rw-r----- 1 root root 67190784 Oct  4 09:53 Java14_64.sdk
    -rw-rr 1 root root 77370639 Nov 20 19:36 Java14_64.sdk.tar.gz
    -rw-r----- 1 root root 12612608 Oct  4 09:53 Java14_64.source

  • How to block mac address in 2800 router

    sir
    how to block mac addresses in cisco 2800 router 

    Hi,
    To block mac addresses you can simply create Mac based ACLs which ranges between 
    700 to 799
    Example:
    access-list 700 deny xxxx.xxxx.xxxx.xxxx
    access-list 700 permit yyyy.yyyy.yyyy.yyyy
    now you can apply it on interface:
    int f0/0
    access-group 700 in 
    exit
    Regards,
    Rahul Chhabra
    Network Engineer
    Spooster IT Services

  • How to see mac address in IPS 4240 ???

    Hi all,
    How to see mac-address of inline-vlan-pair ?  and how to see mac-address of management interface in IPS ?
    Regards,
    Kiran

    Hello Kiran,
    The inline-vlan-pair itself is tied to a particular interface. So you're really asking for the MAC address of the interface associated with the inline-vlan-pair.
    The MAC address of sensing ports will be added to a "show interfaces" via CSCse84414. You can currently view the MAC address of sensing interfaces by doing an "ifconfig -a" from the service account.
    Thank you,
    Blayne Dreier
    Cisco TAC IDS Team
    **Please check out our Podcast**
    TAC Security Show: http://www.cisco.com/go/tacsecuritypodcast

  • How to run mac os in vmware windows 7

    how to run mac os in vmware windows 7?

    You will need to outline your query in a lot more detail so we can understand just what it is you are trying or wishing to do.
    Thanks
    Pete

Maybe you are looking for

  • Crystal Report Error under vs 2005

    Hi, I shifted my machine from windows 32 to windows 64 bit. I install VS 2005 & Crystal Reportfor .Net framework (x86) now when am running my application which is developed in 32 bit os, it gives me error. "NewGenerator' no suitable method found to o

  • Solution who encounter 'Setup does not detect Sound Blaster .....' error msg during installat

    For those who encounter 'Setup does not detect sound blaster audio in the system' error upon installing from the installation CD. You can try the steps below that work for me. It seems Windows have lock on to the sound card with an incorrect ID thus

  • Can't Login to Service Designer

    I'm unable to login to the PTG Service Designer. I'm running NT/OAS. Upon starting the Service Designer I provide the appropriate credentials: Location: hostname:2008/PanamaServer UserName: Administrator Password: manager (tried several other combina

  • IDoc (asynchron) - HTTP (synchron, plain text) - RFC

    Hello, I've implemented the following Business Process inside our PI 7.1: Reciver           -> Mapping                    -> Sender             -> Mapping              -> Sender (getting IDoc)     (IDoc to Plain Text)         (sync, HTTP)       (plai

  • Adobe Flash Player 11.6.602.180 (15.7 MB)

    Facebook games wont open now that I installed this. What is the remedy. Respond to [removed]. Yes I had th anti virus off during instalation.