===在NTU设置FTP遇到的IP问题===
登录 | 论坛导航 -> 华新鲜事 -> 社会百科 | 本帖共有 9 楼,当前显示第 7 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:香陵居士 (等级:16 - 好恐怖呀,发帖:22662) 发表:2003-10-14 14:59:21  7楼 
This is related to NAT
According to Internet Assigned Numbers Authority(IANA), three blocks of addresses are for private IP addressing, they are:

10.0.0.0/8
172.16.0.0/12 (Your IP address belongs to this group)
192.168.0.0/16

These IP addresses are usually not supported outside your LAN. This problem is usually solved by Network Address Translation (NAT) or Port Address Translation (PAT). NAT or PAT in short can be explained as a method to translate your local IP to a global IP which is recognizable outside LAN.

So what you see through ipconfig /all (172.20.192.xxx) is you local IP, which is a private IP and is not recognized in WAN (Thats why people outside NTU can not visit you);
the IP you see through FTP.SINGNET.COM.SG is "your" global IP, which is public and it is recognized in WAN. It is translated from your local IP by the router connecting outside automatically.

But NAT have its own problems: It add addtional delay; it prevents you from using peer-to-peer IP tracing tools; and it causes some problem with certain High-level Protocol/Applications.

One of the certain problem caused is PORT mode FTP transmisstion. As PORT mode use different port for control message and data, it will be stopped by NAT. Thus if your LAN is connecting outside using NAT, don't use PORT mode, use PASV mode instead.

To summary up:
1. The different address seen is caused by NAT and is nothing unnature.
2. Make sure to use PASV mode to access FTP through NAT.
最新推出专栏《倾听索罗斯》 欢迎大家前来捧场!

Yeah!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 9 楼,当前显示第 7 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码