diff --git a/newrelic-agent/src/main/java/com/newrelic/agent/config/Hostname.java b/newrelic-agent/src/main/java/com/newrelic/agent/config/Hostname.java index f035521020..2572c0d29b 100644 --- a/newrelic-agent/src/main/java/com/newrelic/agent/config/Hostname.java +++ b/newrelic-agent/src/main/java/com/newrelic/agent/config/Hostname.java @@ -117,7 +117,7 @@ public static String getFullHostname(AgentConfig config) { private static InetAddress determineAddress() { try (DatagramSocket socket = new DatagramSocket()) { // a random port is used just to get the address - socket.connect(Inet6Address.getByName("newrelic.com"), 10002); + socket.connect(Inet6Address.getByName("collector.newrelic.com"), 10002); return socket.getLocalAddress(); } catch (SocketException | UnknownHostException e) { Agent.LOG.log(Level.FINE, "Unable to determine IP address.", e);