Merge "Fix DatagramSocketTest#test_getRemoteSocketAddress"
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
index bb9e806..45fe5f3 100644
--- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
+++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
@@ -736,7 +736,7 @@
             // now create one that is not connected and validate that we get the
             // right answer
             try (DatagramSocket theSocket = new DatagramSocket(null)) {
-                theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0));
+                theSocket.bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0));
                 assertNull(theSocket.getRemoteSocketAddress());
 
                 // now connect and validate we get the right answer