juanrossi 10 Share Posted June 1, 2016 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 Link to comment Share on other sites More sharing options...
Plerus 1 Share Posted June 1, 2016 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. Link to comment Share on other sites More sharing options...
juanrossi 10 Author Share Posted June 1, 2016 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. 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. Link to comment Share on other sites More sharing options...
Harold 11 Share Posted June 3, 2016 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.