에스프리터
close
프로필 배경
프로필 로고

에스프리터

    • 전체보기 (133)
      • DATA (46)
      • DEV (43)
      • CLOUD (38)
      • MIND (2)
      • Monthly I Learned (4)
  • mode_edit_outline글작성
  • settings환경설정
    728x90
    JAVA InetAddress 클래스를 활용한 IP 읽기 예제

    JAVA InetAddress 클래스를 활용한 IP 읽기 예제

    importjava.net.InetAddress; public class NetTest1 { public static void main(String[] args) { InetAddress ia; InetAddress ia2[]; try { ia = InetAddress.getByName("www.naver.com"); System.out.println(ia); System.out.println(ia.getHostAddress()); System.out.println(ia.getHostName()); System.out.println("-----"); ia2 = InetAddress.getAllByName("www.daum.net"); for(InetAddress a:ia2) { System.out.pri..

    • format_list_bulleted DEV
    • · 2018. 1. 26.
    • textsms
    728x90
    • 1
    300x250
    전체 카테고리
    • 전체보기 (133)
      • DATA (46)
      • DEV (43)
      • CLOUD (38)
      • MIND (2)
      • Monthly I Learned (4)
    최근 글
    인기 글
    최근 댓글
    Copyright © 에스프리터 All rights reserved.
    Designed by JJuum

    티스토리툴바