Teamcity windows docker agent connecting problem

Hi,
We have a teamcity server on Windows 10 machine and we want to build a teamcity docker windows agent on the same machine. But when we run the docker windows agent container, we get the following warning message:

WARN - buildServer.AGENT.registration - Error while asking server for the communication protocols via URL http://xx.xxx.x.xxx/app/agents/protocols. Will try later: java.net.ConnectException: Connection timed out: connect (enable debug to see stacktrace)

WARN - buildServer.AGENT.registration - Error registering on the server via URL http://xx.xxx.x.xxx. Will continue repeating connection attempts. Details: server is in a maintenance mode

and the agent can not connect the teamcity server. We tried to write agent ownAddress in its build configuration file, but it didn’t work.

Is there any opinion about the problem?
Thank you.