Skip to content

Commit

Permalink
changed connect host (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonenriqueta authored Mar 6, 2024
1 parent 6063816 commit cb8f2a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb8f2a8

Please sign in to comment.