# Why has my Environment IP not updated after I changed it?

If you have updated your Portainer Agent environment's IP address, you may not see the update apply correctly in your Portainer Server instance. To resolve this, restart your Portainer Server container.

Assuming you have followed our [install instructions](/sts/start/install/server.md), you can do this from the command line:

On Docker Standalone:

```
docker restart portainer
```

On Docker Swarm:

```
docker service update --force portainer_portainer
```

On Kubernetes:

```
kubectl -n portainer rollout restart deployment.apps/portainer
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.portainer.io/sts/faqs/troubleshooting/agents-and-environment-management/why-has-my-environment-ip-not-updated-after-i-changed-it.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
