On-premise Server

Hello team,

If we want to create a connection between Tomcat and ActiveMQ for an on-premise server where both are on different systems. How can we make them connect to each other?

Or it is not possible?