Docker: Container cannot connect to the host on port 9000

I need set up Xdebug on Ubuntu to debug for applications running in a container of Docker. Docker’s host IP address (also is the Ubuntu I’m spent) is Currently I have installed Xdebug on IDE and enabled Xdebug.

Use telnet on the host to check connectivity to 9000 port (on the same host):
$ telnet localhost 9000
Find ran successfully:

Trying …
Connected to localhost.
Escape character is ’ ^] '.

Instead of localhost on by well okie.
But when ssh inside the container and make telnet out host check connections on ports 9000:

telnet 9000

Then the error:

Telnet: connect to address Connection refused
Telnet: Unable to connect to remote host

But when I try to telnet out to the host from the container on the portal in such as 80 or 8080:

$ telnet localhost 80

The success (of course this when running telnet ports on the host itself also connect).
I’m not really much about network, who understand about this bug fix support network Docker help me with.