develog

java get ip 본문

Dev/Java

java get ip

냐옴 2012. 12. 14. 14:35

try {

    InetAddress localhost = InetAddress.getLocalHost();

    System.out.println(localhost.getHostAddress());

} catch (UnknownHostException e) {

    e.printStackTrace();

}

'Dev > Java' 카테고리의 다른 글

Quartz job fire manually  (0) 2012.12.18
Quartz - Defining a Job  (0) 2012.12.14
Apache Derby Eclipse plug-in  (0) 2012.12.08
Quartz cron expression test  (0) 2012.12.04
Quartz Test  (0) 2012.12.04
Comments