wilson's story

아이피 확인하기 본문

Java

아이피 확인하기

wilson 2008. 9. 24. 10:29
반응형

import java.net.*;

class Net {

    public static void main(String[] args) throws Exception {
        InetAddress inet = InetAddress.getLocalHost();

        System.out.println("Local host IP : " + inet.getHostAddress());
    }
}

반응형