I have installed ActiveMQ in a VM in Azure with an IP address XXX.XXX.XXX.XXX, where another web application is also running. So it is a remote server.
Now, I need to get access to the ActiveMQ web console.
I am typing the URL XXX.XXX.XXX.XXX:8161/admin, but I’m getting the error message “This site can’t be reached”. So, I think this error is because the web console is listening to the IP address 127.0.0.1 (localhost) and not the IP address XXX.XXX.XXX.XXX of the server.
I tried changing the properties host and port of jetty.xml like this:
<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
<!-- the default port number for the web console -->
<property name="host" value="XXX.XXX.XXX.XXX"/>
<property name="port" value="8161"/>
</bean>
But, after making this change, I cannot start ActiveMQ, since when I type the command “sh activemq console”, I get the error “Cannot assign the requested address”.
Does someone can help me to understand the issue and its solution?
Thanks in advance for your support.