# "Forest Admin can't reach your agent; please ensure that it's running."

**URL:** <https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005>\
**Category:** Help me!\
**Created:** [March 26, 2025, 12:50pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005 "2025-03-26T12:50:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 12:50pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/1 "2025-03-26T12:50:53Z")

</div>

## Feature(s) impacted

I have followed the instructions to start the development server and it starts locally.

## Observed behavior

When I switch to the development environment I get the error “Forest Admin can’t reach your agent; please ensure that it’s running.”

## Expected behavior

I was expecting to be able to edit the development environment.

## Failure Logs

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/8/8eeebaa8eee352504e96dbe9ffe9aedd3aa53b8e.png)

## Context

- Project name: Cerebro2
- Team name: Praxis Labs
- Environment name: Windows
- Agent technology: (nodejs, php, rails, python): ?
- Agent (forest package) name & version: forest-cli/5.3.0 win32-x64 node-v20.18.0
- Database type: MongoDB
- Recent changes made on your end if any: Installed development environment

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [March 26, 2025, 1:29pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/2 "2025-03-26T13:29:19Z")

</div>

Hello @Janet_Gilbert

Thanks for reaching out to the community support.

As you are in a Cloud project, the setup was minimised to reduce friction as much as possible, the environment is configured to reach localhost:3310 which is the default port the local development agent should listen on.

Are you facing an issue or constraints that required you to change the default port of your local development agent ?

Best regards,

---

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 2:38pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/3 "2025-03-26T14:38:25Z")

</div>

I think we are using 3310 for something else. How can I get it to look for the 3351 port?

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [March 26, 2025, 2:50pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/4 "2025-03-26T14:50:06Z")

</div>

There is no access via button in the UI to reach the configuration screen of your development environment as it was designed to show/provide an experience as minimalistic as possible.

However you can still access the configuration screen of your development environment by following this [link](https://app.forestadmin.com/Cerebro2/settings/environments/details/Development%20%7C%20janetgilbert).

I will see if we can at least provide a quick access button when the UI cannot reach the agent as to allow users to configure it.

---

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 2:54pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/5 "2025-03-26T14:54:03Z")

</div>

Thanks! A quick access button is a great idea.

Now I get a different error “An error occurred during authentication. Please check that your database credentials are correct and resync your agent.”

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/dd5ee94bd032fd97d7b0bbb4b3c9dd5c8f9a93b8.png)

---

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 3:02pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/6 "2025-03-26T15:02:40Z")

</div>

I don’t seem to be using anything on port 3310, so is there a way of forcing Forest to launch on 3310?

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [March 26, 2025, 3:24pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/7 "2025-03-26T15:24:11Z")

</div>

The configuration relating to your local agent can be found in the `.env` inside of the directory that was generated after the `bootstrap` step. As well as `datasources.js` to configure your development database

---

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 3:40pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/8 "2025-03-26T15:40:26Z")

</div>

I added these lines to my .env file but it’s still not launching on the port 3310. It always mounts on 3351

FOREST\_ENV\_SECRET=[redacted]  
TOKEN\_PATH=C:\Users\janet  
LOG\_LEVEL=Info  
APPLICATION\_URL=[http://localhost:3310](http://localhost:3310)  
APPLICATION\_PORT=3310

---

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 3:50pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/9 "2025-03-26T15:50:38Z")

</div>

OK it finally managed to connect to my server on 3351! Thanks and enjoy your evening.

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [March 26, 2025, 4:09pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/10 "2025-03-26T16:09:34Z")

</div>

it’s great that you’ve been able to access your local agent, if you encounter any other issue, I’ll be glad to help as it is not expected for your agent to start on port 3351.

I’ll forward to the team the idea of having a way to reach the environment configuration via the error modal.

Thanks ! have a nice evening as well.

---

<div class="post-metadata">

**Author:** ![Janet\_Gilbert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/janet_gilbert/32/7805_2.png) [@Janet\_Gilbert](https://community.forestadmin.com/u/Janet_Gilbert)\
**Post date:** [March 26, 2025, 5:46pm UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/11 "2025-03-26T17:46:01Z")

</div>

I didn’t set my agent to start on port 3351 and there’s no reason why it shouldn’t have started on 3310. The .env file seems to be ignored.

---

<div class="post-metadata">

**Author:** ![anon7284711](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@anon7284711](https://community.forestadmin.com/u/anon7284711)\
**Post date:** [March 27, 2025, 9:27am UTC](https://community.forestadmin.com/t/forest-admin-cant-reach-your-agent-please-ensure-that-its-running/8005/12 "2025-03-27T09:27:10Z")

</div>

That is indeed not the expected behaviour, could you share the explorer view of your bootstrapped directory ?

Are you the one that set up the project initially, did you follow the procedure described in Cloud customize modal inside of the UI ?

Not sure if it is relevant but could you have a global environment variable set for APPLICATION\_PORT ?
