diff -r 2711da7ccd30 -r c0806cb8d4ae jdk/test/java/net/Socks/SocksProxyVersion.java --- a/jdk/test/java/net/Socks/SocksProxyVersion.java Mon Oct 14 10:42:36 2013 +0200 +++ b/jdk/test/java/net/Socks/SocksProxyVersion.java Mon Oct 14 11:47:54 2013 +0100 @@ -41,6 +41,10 @@ volatile boolean failed; public static void main(String[] args) throws Exception { + if (InetAddress.getLocalHost().isLoopbackAddress()) { + System.out.println("Test cannot run. getLocalHost returns a loopback address"); + return; + } new SocksProxyVersion(); }