# Java or node.js APM agent installation without full internet access on host server

**URL:** <https://discuss.elastic.co/t/java-or-node-js-apm-agent-installation-without-full-internet-access-on-host-server/334001>\
**Category:** APM\
**Tags:** java, nodejs\
**Created:** [May 22, 2023, 9:12am UTC](https://discuss.elastic.co/t/java-or-node-js-apm-agent-installation-without-full-internet-access-on-host-server/334001 "2023-05-22T09:12:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_Hitachi](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Anand\_Hitachi](https://discuss.elastic.co/u/Anand_Hitachi)\
**Post date:** [May 22, 2023, 9:12am UTC](https://discuss.elastic.co/t/java-or-node-js-apm-agent-installation-without-full-internet-access-on-host-server/334001/1 "2023-05-22T09:12:36Z")

</div>

The lab server on which the APM agent is to be installed doesn't have full internet access due to our organizations strict firewall policies. Any other way to install java or node.js APM agent.

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [May 22, 2023, 1:11pm UTC](https://discuss.elastic.co/t/java-or-node-js-apm-agent-installation-without-full-internet-access-on-host-server/334001/2 "2023-05-22T13:11:26Z")

</div>

The java agent only needs the [java agent jar](https://www.elastic.co/guide/en/apm/agent/java/current/setup-javaagent.html), you can copy that on to any relevant machine the way you copy any files, it doesn't need internet access. You could also copy it into your Java application distribution and distribute with the application - just don't include the jar in the application classpath, it's a separate jar that should only be loaded using agent loading mechanisms

---

<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:** [June 12, 2023, 9:12am UTC](https://discuss.elastic.co/t/java-or-node-js-apm-agent-installation-without-full-internet-access-on-host-server/334001/3 "2023-06-12T09:12:02Z")

</div>

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