InetAddress « javax.net « Java by API






1.InetAddress.getByName(String name)
2.InetAddress.getLocalHost()