# Why do I get a connection error when exporting OpenTelemetry traces to OneAgent?

**URL:** <https://community.dynatrace.com/t/why-do-i-get-a-connection-error-when-exporting-opentelemetry-traces-to-oneagent/42795>\
**Category:** Troubleshooting\
**Tags:** distributed-traces-classic, opentelemetry\
**Created:** [November 28, 2023, 9:20pm UTC](https://community.dynatrace.com/t/why-do-i-get-a-connection-error-when-exporting-opentelemetry-traces-to-oneagent/42795 "2023-11-28T21:20:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander\_dt](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@alexander\_dt](https://community.dynatrace.com/u/alexander_dt)\
**Post date:** [November 28, 2023, 9:20pm UTC](https://community.dynatrace.com/t/why-do-i-get-a-connection-error-when-exporting-opentelemetry-traces-to-oneagent/42795/1 "2023-11-28T21:20:00Z")

</div>

- The EEC endpoint is only available with&nbsp;[Full-Stack and Infrastructure Monitoring](https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/hosts/basic-concepts/get-started-with-infrastructure-monitoring), but not in&nbsp;[container environments](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/installation). Use ActiveGate instead.
- Make sure you’ve configured the correct&nbsp;[`http://localhost`&nbsp;URL](https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/getting-started/otlp-export#export-to-oneagent-traces-only).
- Make sure you’re using the correct port (default&nbsp;`14499`).

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 29, 2023, 9:16pm UTC](https://community.dynatrace.com/t/why-do-i-get-a-connection-error-when-exporting-opentelemetry-traces-to-oneagent/42795/2 "2023-11-29T21:16:20Z")

</div>

Thank you Alex!
