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 192.168.10.17. 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 127.0.0.1 …
Connected to localhost.
Escape character is ’ ^] '.

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

telnet 192.168.10.17 9000

Then the error:

Trying 192.168.10.17.
Telnet: connect to address 192.168.10.17: 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.
Thanks