TCP侦听器和客户端之间的NAT [英] NAT between TCP Listener and Client

查看:62
本文介绍了TCP侦听器和客户端之间的NAT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个TCP侦听器和TCP客户端应用程序,当它们在同一个网络中时,它们都能正常通信。目前在我们面临一个问题的客户端站点之一,有两个网络通过NAT(网络地址转换器)连接,如果我的监听器和客户端在NAT的一侧,那么这些工作正常,但当NAT以外的客户端尝试通信服务器问题出现了,这可能是什么解决方案?

谢谢日理

Hi
 
  I am having a TCP Listener and TCP Client application , both of them communicate properly when they are in same network. Currently at one of the client site we are facing an issue, there are two networks connected through NAT(Network Address translator) ,If my listener and client are on one side of NAT then those work fine but when clients beyond NAT try to communicate the server the the problem arises, what is the probable solution for this ??

Thanks
Nippo

推荐答案

如果客户端是NAT背后,它应该工作正常。所以,我假设服务器在NAT后面。

在这种情况下,你需要在NAT设备上配置端口转发:
http://portforward.com/

-Steve
If the client is behind a NAT, then it should work fine. So, I'm assuming that the server is behind a NAT.

In this case, you need to configure port forwarding on the NAT device:
  http://portforward.com/

       -Steve


这篇关于TCP侦听器和客户端之间的NAT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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