shifter
shifter copied to clipboard
Java getLocalHost fails
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); } }