macaddress (1) 썸네일형 리스트형 Java MAC Address 자바 맥주소 가져오기 Java MAC Address 자바 맥주소 가져오기 자바에서 MAC Address를 가져오는 메소드를 간단히 만들어 봤다 1. 아래 getLocalMacAddress() 메소드를 이용하면 간단히 가져올 수 있다 /** * 로컬 맥 주소를 가져오는 메소드 * * Created by 닢향 * http://niphyang.tistory.com */ public String getLocalMacAddress() { String result = ""; InetAddress ip; try { ip = InetAddress.getLocalHost(); NetworkInterface network = NetworkInterface.getByInetAddress(ip); byte[] mac = network.getHar.. 이전 1 다음