This is related to NAT
所在版块:社会百科 发贴时间:2003-10-14 14:59

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
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!
 相关帖子 我要回复↙ ↗回到正文
===在NTU设置FTP遇到的IP问题=== 问题少年   (390 bytes , 622reads )
终于搞定了,经验如下 问题少年   (156 bytes , 281reads )
This is related to NAT 香陵居士   (1452 bytes , 175reads )
I tried to set it to PASV mode 问题少年   (128 bytes , 169reads )
need to take care SmellsLikeTeenSpirit   (232 bytes , 180reads )
But how? 问题少年   (52 bytes , 158reads )
另一个问题是,为什么两个方法得到的ip不一样 问题少年   (0 bytes , 266reads )
that shouldn't be the case SmellsLikeTeenSpirit   (57 bytes , 187reads )
here 问题少年   (3714 bytes , 170reads )