public static String getLocalIp ( ) throws RuntimeException { try { InetAddress addr = getLocalIpAddress ( ) ; return addr . getHostAddress ( ) ; } catch ( RuntimeException e ) { throw new RuntimeException ( "[FileHelper] {getLocalIp}: Unable to find the local machine" , e ) ; } }
Gets the local IP address