Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • NetworkInterface.getByInetAddress()


    juanrossi
     Share

    Recommended Posts

    I just wanna know if jagex is able to see my MAC Adress with this app. Im pretty sure this could only be printed in my local PC and the only one who would be able to see my MAC adress is my ISP or me. 

     

    Correct me if im wrong.

     

    Java developers are able to access network card detail via NetworkInterface class. In this example, we show you how to get the localhost MAC address in Java.

     

     

    package com.mkyong;

    import java.net.InetAddress;
    import java.net.NetworkInterface;
    import java.net.SocketException;
    import java.net.UnknownHostException;

    public class App{
        
    public static void main(String[] args){
            
        InetAddress ip;
        try {
                
            ip = InetAddress.getLocalHost();
            System.out.println("Current IP address : " + ip.getHostAddress());
            
            NetworkInterface network = NetworkInterface.getByInetAddress(ip);
                
            byte[] mac = network.getHardwareAddress();
                
            System.out.print("Current MAC address : ");
                
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < mac.length; i++) {
                sb.append(String.format("%02X%s", mac[i], (i < mac.length - 1) ? "-" : ""));        
            }
            System.out.println(sb.toString());
                
        } catch (UnknownHostException e) {
            
            e.printStackTrace();
            
        } catch (SocketException e){
                
            e.printStackTrace();
                
        }
        
    }

    }

     

     

     

    OUTPUT I've got 

    Current IP address : 192.168.1.22

    Current MAC address : 00-26-B9-9B-61-BF
    Edited by juanrossi
    Link to comment
    Share on other sites

    Yeah they can see your MAC if they want to. How do you think they made it so you have to be on a certain computer to access a JMod account. :D

    Edited by Plerus
    Link to comment
    Share on other sites

    Yeah they can see your MAC if they want to. How do you think they made it so you have to be on a certain computer to access a JMod account. :D

    Ummm they did that with router settings and ipv4 protocol probably, i dont really think it has noting to do with Java itself. (They can only log on JMOD accs while they are in Jagex Network in their work time 9-18hs London hour)

     

    You've some settings to allow or deny access to a specific MAC adress on some networks.

    Edited by juanrossi
    Link to comment
    Share on other sites

    MAC's technically aren't unique and are (usually) not visible by your ISP.

    The MAC is fairly irrelevant for connecting to the internet, it's primarily used for local communication.

    Also, I don't see what you're trying to achieve by this.

    Link to comment
    Share on other sites

     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.