`InetAddress.getLocalHost()` may select a non-loopback address, whose traffic may be subject to filtering rules. This can cause the test to time out (since the receiver doesn't get the packets), causing the test to fail.
Since all communication in these tests is local, this patch makes use of `InetAddress.getLoopbackAddress()` instead. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Use loopback address for local communication Changes: https://git.openjdk.org/jdk/pull/33978/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33978&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8397853 Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/33978.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33978/head:pull/33978 PR: https://git.openjdk.org/jdk/pull/33978
