I have created a setup of Kaazing VPN on host machine and VM as guest machine taking reference from http://kaazingcorp.cachefly.net/com/file/kaazing-vpc.pdf URL & also, as suggested i have tested the connection using perl as well. But now i want to send the message to kaazing gateway on client side using some javascript and want to see that traveling to other side which has ActiveMQ configured. But, when i sent one message to some queue and created the producer. Than found that travel path is till Kaazing & MQ on client side. Can anybody tell me the solution.
Gateway details for client side.
<service>
<name>proxy-connection</name>
<accept>tcp://172.19.xx.xx:50505/</accept>
<type>proxy</type>
<properties>
<connect>
ws://192.168.yy.yy:8010/
</connect>
</properties>
</service>
<service-defaults>
<accept-options>
<http.bind>8000</http.bind>
<ws.bind>8010</ws.bind>
</accept-options>
</service-defaults>
Gateway details for server side
<service>
<name>proxy-connection</name>
<accept>ws://192.168.yy.yy:8010/</accept>
<type>proxy</type>
<properties>
<connect>
tcp://10.a.b.c:50505/
</connect>
</properties>
</service>
<service-defaults>
<accept-options>
<http.bind>8000</http.bind>
<ws.bind>8010</ws.bind>
</accept-options>
And for sending message just created the small java script client connecting via JMS connection factory and creating a topic with producer and consumer before sending. But, not getting any message on other side but all messages are being displayed under MQ on client side. Please suggest.
10/8,172.16/12and192.168/16are all private ip address ranges. I am guessing you need external ip addresses for the messages to go to the other side.If this is what it is supposed to look like:
Then
tcpconnection is local (private ip is fine) butwsconnection needs to use a public ip.This below is a private ip address:
All connections will not leave your client. This cannot be your server's ip address... unless your server is also on the same local network.
Related comic: http://xkcd.com/742/