NAT路由器阻止JMS消息 [英] NAT router blocking JMS messages

查看:187
本文介绍了NAT路由器阻止JMS消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个openjms-0-7-7实例在我的云计算机上运行。到jms主题的连接发生在tcp上。我在我的个人计算机上在家里运行客户端应用程序,我能够发送消息到主题(然后正确转发给其他侦听器),但我无法接收消息。我的电脑通过NAT路由器连接到互联网。
我试图使用我的大学网络重现这个问题,一切正常(我分配了我自己的外部IP地址 - 没有NAT)。



我是否认为问题是我的路由器阻止消息?



Bart

p>

解决方案

您的路由器很可能阻止传入的JMS消息,因为它不知道它属于哪个本地客户端。 p>

您必须在路由器中配置端口转发。请参考它的文档。要知道转发哪些端口,您必须查阅openjms的文档,了解如何将端口分配给客户端。


I have an openjms-0-7-7 instance running on my cloud machine. The connection to the jms topic happens over tcp. I run the client application on my personal computer at home and I am able to send messages to the topic (which then get forwarded correctly to other listeners) but I am unable to receive messages. My PC is connected to the internet through a NAT router. I have tried to reproduce this issue using my university network and it all worked fine (there I am assigned my own external IP address - no NAT).

Am I right thinking that the problem is my router blocking the messages? How can I check this and also, how can I fix this.

Best regards,

Bart

解决方案

Your router is most probably blocking incoming JMS messages as it does not know to which local client (after NAT) it belongs.

You will have to configure port forwarding in your router. Please refer to its documentation for that. To know which ports to forward, you will have to consult openjms's documentation to see how it assigns ports to clients.

这篇关于NAT路由器阻止JMS消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆