Connecting to ClickHouse from external network

3,761 views
Skip to first unread message

Oleg K

unread,
Nov 27, 2017, 5:41:31 PM11/27/17
to ClickHouse
Hi!

I've just installed ClickHouse and trying to connect from external network to http port.
I connect to default http port (8123) with no problem from localhost.
When connecting from outside, I get no response. All firewalls are open for port 8123.

When searching for a solution I found this post:

It says "Ensure ClickHouse listen on both 127.0.0.1 and external IP (so you can connect from another server)."

Looks like it may be my issue too.

So, how can I make CH listen on external IP?
Or, maybe it is some other issue?

Thank you,

Oleg


Vitaliy Lyudvichenko

unread,
Nov 28, 2017, 8:41:12 AM11/28/17
to ClickHouse
You could set 
    <listen_host>::</listen_host>
    <listen_host>0.0.0.0</listen_host>
in config.xml to listen all interfaces.


вторник, 28 ноября 2017 г., 1:41:31 UTC+3 пользователь Oleg K написал:

Oleg K

unread,
Nov 28, 2017, 9:29:58 AM11/28/17
to ClickHouse
Thank you!

Just in case:
"::" and "0.0.0.0" mean the same?
Reply all
Reply to author
Forward
0 new messages