> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/51.-monitoring-and-management-over-http/51.4-customizing-the-management-server-address.md).

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

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

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

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

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