公共地址通过互联网与私有地址通信问题
现在我正在运行一个网络可用带宽项目。假设我正在测试我的机器和planet1.scs.stanford.edu之间的可用带宽。
现在我面临的问题是我的机器使用私有地址,例如172.18.186.200,另一端使用公共地址,例如171.66.3.181 .一旦我运行测试,接收端(假定为远程计算机)无法从发送端(我的本地计算机)接收到 ACK。
我知道我的公共路由地址,我猜它与 NAT 有关。那么如何正确指定我的本地地址以成功执行测试项目?
提前致谢 !
now i am running a network available bandwidth project.Suppose i am testing the available bandwidth between my machine and planet1.scs.stanford.edu.
Now the problem i am faced with is that my machine is using a private address,say,172.18.186.200,the other end is using a public address,say 171.66.3.181.Once i ran the test,the receiver end(the remote machine assumed) could not receive ACK from the sender end(my local machine).
i know my publicly routed address, i guess it is about the NAT.So how to correctly specify my local address to successfully carry out the testing project ?
Thanks in advance !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NAT(伪装)的常用形式不允许入站连接。为了允许它们,您需要添加另一种形式的 NAT,即端口重定向,这在常见的 ADSL 路由器中往往被称为“端口转发”、“虚拟服务器”或类似的名称。这样,您就可以告诉 ADSL 路由器将其端口 X 的连接转发到端口 Y 上的某个内部 IP。
(某些协议使用多个连接,例如:FTP、H.323,并在主连接上发送有关辅助连接的信息。这些协议需要NAT设备的特殊支持)。
The usual form of NAT (masquerading) doesn't allow inbound connections. To allow them, you would need to add another form of NAT, port redirection, which in common ADSL routers tends to be called "Port Forwarding", "Virtual Servers", or something similar. This way, you tell your ADSL routers to forward connections to its port X to some internal IP on port Y.
(Some protocols use several connections, e.g: FTP, H.323, and send the information about secondary connections on the primary connection. These protocols need special support in the NAT device).