<div>default via 10.108.107.1 dev rmnet0 </div> <div>10.108.107.0/24 dev rmnet0 proto kernel scope link src 10.108.107.113 </div> <div>10.108.107.1 dev rmnet0 scope link </div> <div><br /></div> <div><br /></div> <div><br /></div> <div> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span style="color: #931a68">public</span> <span style="color: #931a68">void</span> getNetworkIfacelist2() {</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>NetworkInterface iface = <span style="color: #931a68">null</span>;</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span><span style="color: #931a68">try</span> {</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span><span style="color: #931a68">for</span> (<span style="text-decoration: underline">Enumeration</span> ifaces = NetworkInterface.getNetworkInterfaces(); ifaces</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>.hasMoreElements();) {</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>iface = (NetworkInterface) ifaces.nextElement();</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>InetAddress ia = <span style="color: #931a68">null</span>;</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco; min-height: 15px"><br /></p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span><span style="color: #931a68">for</span> (<span style="text-decoration: underline">Enumeration</span> ips = iface.getInetAddresses(); ips</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>.hasMoreElements();) {</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>ia = (InetAddress) ips.nextElement();</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>String name = iface.getName();</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>String address = ia.getHostAddress();</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span><span style="color: #931a68">if</span> (!ia.isLoopbackAddress()</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>&& !ia.getHostAddress().toString().contains(<span style="color: #3933ff">":"</span>)) {</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span><span style="color: #0326cc">ifacenamelist2</span>.add(name);</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span><span style="color: #0326cc">ifaceaddrlist2</span>.add(address);</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>}</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>}</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>}</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>} <span style="color: #931a68">catch</span> (SocketException e) {</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>e.printStackTrace();</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>}</p> <p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco"><span class="Apple-tab-span" style="white-space: pre"> </span>}</p></div>
<center>
<img src=http://img856.imageshack.us/img856/1624/66522605.gif>
<img_ src=http://imageshack.us/a/img11/3142/84039539.gif>
<img_ src=http://imageshack.us/a/img841/1540/64633015.gif>
<img_ src=http://thimg.todayhumor.co.kr/upfile/200801/1199654969049_3.jpg>
<img_ src=http://imageshack.us/a/img22/7333/66961409.gif>
<img_ src=http://thimg.todayhumor.co.kr/upfile/201302/7a6f4417340c383a0f54f3bc8f3e9250.JPG>
<img_ src=http://thimg.todayhumor.co.kr/upfile/201302/09b7a63d71f3781e792dd75926838622.JPG>
좋아하는것을 해주는것보다 싫어하는것을 하지말자.
http://jspstudy.co.kr/
2012 7 27 일
저도 저보다 키크고 손크고 남자답고 깔끔한손과 얼굴
조용한바다
[박준혁]님의 과학기술인등록번호는 1113 1093 입니다.
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.