게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
dsdsd
게시물ID : databox_3242짧은주소 복사하기
작성자 : 망량
추천 : 0
조회수 : 141회
댓글수 : 1개
등록시간 : 2013/07/09 05:15:46
default via 10.108.107.1 dev rmnet0 
10.108.107.0/24 dev rmnet0  proto kernel  scope link  src 10.108.107.113 
10.108.107.1 dev rmnet0  scope link 



public void getNetworkIfacelist2() {

NetworkInterface iface = null;

try {

for (Enumeration ifaces = NetworkInterface.getNetworkInterfaces(); ifaces

.hasMoreElements();) {

iface = (NetworkInterface) ifaces.nextElement();

InetAddress ia = null;


for (Enumeration ips = iface.getInetAddresses(); ips

.hasMoreElements();) {

ia = (InetAddress) ips.nextElement();

String name = iface.getName();

String address = ia.getHostAddress();

if (!ia.isLoopbackAddress()

&& !ia.getHostAddress().toString().contains(":")) {

ifacenamelist2.add(name);

ifaceaddrlist2.add(address);

}

}

}

} catch (SocketException e) {

e.printStackTrace();

}

}

꼬릿말 보기
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호