# Micrometer-dynatrace show errors java.net.ConnectException: Connection refused: localhost/127.0.0.1:14499

**URL:** <https://community.dynatrace.com/t/micrometer-dynatrace-show-errors-java-net-connectexception-connection-refused-localhost-127-0-0-1-14499/45293>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, java\
**Created:** [April 25, 2024, 7:38am UTC](https://community.dynatrace.com/t/micrometer-dynatrace-show-errors-java-net-connectexception-connection-refused-localhost-127-0-0-1-14499/45293 "2024-04-25T07:38:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@panda](https://community.dynatrace.com/u/panda)\
**Post date:** [April 25, 2024, 7:38am UTC](https://community.dynatrace.com/t/micrometer-dynatrace-show-errors-java-net-connectexception-connection-refused-localhost-127-0-0-1-14499/45293/1 "2024-04-25T07:38:09Z")

</div>

Hello team,

I’m encountering some errors while trying to send metrics to Dynatrace using micrometer-dynatrace following the guide provided. Specifically, I keep getting a java.net.ConnectException: Connection refused: localhost/127.0.0.1:14499 error.

Here’s the guide I’m following:&nbsp;[link](https://docs.dynatrace.com/docs/extend-dynatrace/extend-metrics/ingestion-methods/micrometer#).

Please note that I’m using the auto-configuration approach with OneAgent and I prefer not to configure the URL/token manually.

Could any experts provide assistance on this issue?

Thank you.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [April 25, 2024, 2:36pm UTC](https://community.dynatrace.com/t/micrometer-dynatrace-show-errors-java-net-connectexception-connection-refused-localhost-127-0-0-1-14499/45293/2 "2024-04-25T14:36:23Z")

</div>

Hi&nbsp;[@panda](https://community.dynatrace.com/user/69325),

Many users have faced with this issue. I have not seen any solution for it. You should open a support ticket.

[Failed metric ingestion: java.net.ConnectException: Connection refused (Connection refused) - Dynatrace Community](https://community.dynatrace.com/post/196597)

Best regards,

Mizső
