# How do I connect the APM agent to the APM server?

**URL:** <https://discuss.elastic.co/t/how-do-i-connect-the-apm-agent-to-the-apm-server/282350>\
**Category:** APM\
**Tags:** java\
**Created:** [August 24, 2021, 12:46pm UTC](https://discuss.elastic.co/t/how-do-i-connect-the-apm-agent-to-the-apm-server/282350 "2021-08-24T12:46:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steinko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steinko/32/55862_2.png) [@steinko](https://discuss.elastic.co/u/steinko)\
**Post date:** [August 24, 2021, 12:46pm UTC](https://discuss.elastic.co/t/how-do-i-connect-the-apm-agent-to-the-apm-server/282350/1 "2021-08-24T12:46:49Z")

</div>

> <https://stackoverflow.com/questions/68889504/how-do-i-connect-a-java-apm-aget-to-a-apm-server-when-the-java-apm-agent-is-runn>

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [August 24, 2021, 3:20pm UTC](https://discuss.elastic.co/t/how-do-i-connect-the-apm-agent-to-the-apm-server/282350/2 "2021-08-24T15:20:53Z")

</div>

I have answered in the StackOverflow thread

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 14, 2021, 11:21am UTC](https://discuss.elastic.co/t/how-do-i-connect-the-apm-agent-to-the-apm-server/282350/3 "2021-09-14T11:21:38Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
