@@ -0,0 +1,453 @@
+import java.net.InetAddress;%0Aimport java.net.UnknownHostException;%0A%0Apublic class GetIP %7B%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(getLocalHostIP());%0A    %7D%0A%0A    public static String getLocalHostIP() %7B%0A        try %7B%0A            String ip = InetAddress.getLocalHost().getHostAddress();%0A            return ip;%0A        %7D catch (UnknownHostException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        return null;%0A    %7D%0A%7D%0A

add java snippets