shifter icon indicating copy to clipboard operation
shifter copied to clipboard

Java getLocalHost fails

Open scanon opened this issue 7 years ago • 0 comments

A user reported an odd failure with Java at NERSC.

import java.net.InetAddress;

class IPTest { public static void main(String[] args) throws Exception {

System.out.println("IP Name: " + InetAddress.getLocalHost()); System.out.println("Host Name: " + InetAddress.getLocalHost().getHostName()); System.exit(0); } }

scanon avatar Mar 13 '17 17:03 scanon