Hi,
I am unable to connect rabbitmq server hosted in google cloud platform (gcp) ubuntu VM from java client unless we run gcloud command.
Below is the scenario.
We have 2 VM in GCP where one VM is java test client to send message to queue and other VM is where rabbitmq server is installed.
When we try to run java client then it says connection refused error. Then upon investigation , we tried running below command on client VM as it opens up
the ssh tunnel between 2 VM.
gcloud compute ssh rabbitmq-1-stats-vm-0 --ssh-flag="-L" --ssh-flag="15672:localhost:15672" --project=ach-shd-test --zone=us-east1-b
The question is client don't want to run the gcloud command and open ssh to rabbitmq server VM instead it needs to run without that dependency.
Here is my Rabbitmq-env.config file on server contains
NODE_IPAddress=0.0.0.0.
rabbitmq.config file content is :
[{
rabbit, [
{loopback_users, []},
{tcp_listeners,[{"localhost",5672}]}
]
}].
When I run following command on my client VM it says connection refused unless gcloud command is ran and ssh tunnel is being opened.
telnet hostip 5672
We need this command up and running on client VM without any glcoud command and ssh tunnel dependency
Any pointers/help is much appreciated as we are blocked completely on this?
--Azher