Skip to content

Problem to connect RMq with Address resolver #302

Closed Answered by Gsantomaggio
MikhailTushev asked this question in Q&A
Discussion options

You must be logged in to vote

You need to set the advertised_host in situations like:
https://rabbitmq.com/stream.html#advertised-host-port
( here for more details https://blog.rabbitmq.com/posts/2021/07/connecting-to-streams/ )

By default, nodes return their hostname and listener port, which may be fine for most situations, but not always (proxy sitting between the cluster nodes and the clients, cluster nodes and/or clients running in containers, etc).

"Unknown host"

The client cannot look up the hostname, so you need advertised_host in that case.

An example is using docker:

docker run -it --rm --name rabbitmq-stream-client-test \
		-p 5552:5552 -p 5672:5672 -p 15672:15672 \
		-e RABBITMQ_SERVER_ADDITIONAL_ERL_AR…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MikhailTushev
Comment options

@Gsantomaggio
Comment options

Answer selected by MikhailTushev
@MikhailTushev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants