localhost与127.0.0.1的区别
时间:2014-04-30 22:25:38
收藏:0
阅读:350
localhost与127.0.0.1的区别是什么
定义
localhost也叫local ,正确的解释是:本地服务127.0.0.1在windows等系统的正确解释是:本机地址(本机服务器)
不同点:
localhot(local)是不经网卡传输,它不受网络防火墙和网卡相关的的限制。
127.0.0.1是通过网卡传输,依赖网卡,并受到网络防火墙和网卡相关的限制。
有时候用localhost可以,但用127.0.0.1就不可以的情况就是在于此。
localhost访问时,系统带的本机当前用户的权限去访问,
而用ip的时候,等于本机是通过网络再去访问本机,可能涉及到网络用户的权限。
评论(0)