# 51.4 自定义管理服务器地址

你可以通过设置`management.server.address`属性来定义管理端点使用的地址，这在你只想监听内部或面向生产环境的网络，或只监听来自`localhost`的连接时非常有用。

**注** 当端口跟主应用服务器不一样时，你只能监听一个不同的地址。

下面的application.properties示例不允许远程访问管理服务器：

```java
management.server.port=8081
management.server.address=127.0.0.1
```


---

# 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://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/51.-monitoring-and-management-over-http/51.4-customizing-the-management-server-address.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.
