由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
EmergingNetworking版 - 是否可以比较容易的知道本计算机是否在教育网络?
相关主题
智能手机流量怎么算的? (转载)AS number change on 1/1/2009
不简单也不复杂的虚拟机网络问题IPv6 deployment
请教一个静态路由设置问题NANOG 56
请教各位大牛一个问题。。。ip地址后三位树删除还剩下什么信息呢?
信号满格,xp下笔记本无线总是“正在获取网络地址”cisco vpn client?
在一个device里面同时实现router和switch有什么好处?请教:交叉线联机失败
不用路由器如何使用IP摄像头如何查找一个路由器的信息
用一台ubuntu做proxy? (转载)关于局域网内路由的问题
相关话题的讨论汇总
话题: ip话题: 教育网络话题: 计算机话题: nat话题: public
进入EmergingNetworking版参与讨论
1 (共1页)
n*****n
发帖数: 1634
1
比如通过获得网关IP地址,判断本计算机是否属于教育网络。
原因是我打算做个软件,对于所有学校电脑都可以免费安装使用,其他的则不可以,不
知道是否容易做到
l***y
发帖数: 791
2
NAT could be commonly used so checking local pc's ip from the application
might not work.
making judgement based on the client's packets sent to the server side could
work but i don't know if there is a database available to test whether a
given ip resoles to an educational institution.
i.e. college X might have a registered domain x.edu that resolves to ip
address a.a.a.?/24; but it can also own other public addresses and give them
to campuses not running any public servers.
short answer: not easily done.

【在 n*****n 的大作中提到】
: 比如通过获得网关IP地址,判断本计算机是否属于教育网络。
: 原因是我打算做个软件,对于所有学校电脑都可以免费安装使用,其他的则不可以,不
: 知道是否容易做到

n*****n
发帖数: 1634
3
Thanks a lot!

could
them

【在 l***y 的大作中提到】
: NAT could be commonly used so checking local pc's ip from the application
: might not work.
: making judgement based on the client's packets sent to the server side could
: work but i don't know if there is a database available to test whether a
: given ip resoles to an educational institution.
: i.e. college X might have a registered domain x.edu that resolves to ip
: address a.a.a.?/24; but it can also own other public addresses and give them
: to campuses not running any public servers.
: short answer: not easily done.

z**r
发帖数: 17771
4
美国edu里面用私有地址的应该很少,网络打印机都是一个public ip

could
them

【在 l***y 的大作中提到】
: NAT could be commonly used so checking local pc's ip from the application
: might not work.
: making judgement based on the client's packets sent to the server side could
: work but i don't know if there is a database available to test whether a
: given ip resoles to an educational institution.
: i.e. college X might have a registered domain x.edu that resolves to ip
: address a.a.a.?/24; but it can also own other public addresses and give them
: to campuses not running any public servers.
: short answer: not easily done.

n**********l
发帖数: 271
5

LOL they give public IPs to printers but use NAT for all student owned
devices...
To OP, isn't source IP enough for your purpose? University IT should know
what IP they are using... hopefully..
or you can look it up from ARIN whois
http://bgp.he.net/AS13371#_prefixes

【在 z**r 的大作中提到】
: 美国edu里面用私有地址的应该很少,网络打印机都是一个public ip
:
: could
: them

n*****n
发帖数: 1634
6
谢谢!
很多公司的软件,对学校有优惠价格,似乎也没用啥台高科技的手段,可能就是要个学
校的邮箱,什么的。或者是有的要教授写封信,
IP这个如果不好弄就算了,弄不好以为是有病毒。

【在 n**********l 的大作中提到】
:
: LOL they give public IPs to printers but use NAT for all student owned
: devices...
: To OP, isn't source IP enough for your purpose? University IT should know
: what IP they are using... hopefully..
: or you can look it up from ARIN whois
: http://bgp.he.net/AS13371#_prefixes

s*****g
发帖数: 1055
7
#whois `curl -s ifconfig.me`
With appropriate flags or further parsing of the output will work for 99% of
your situation.

【在 n*****n 的大作中提到】
: 谢谢!
: 很多公司的软件,对学校有优惠价格,似乎也没用啥台高科技的手段,可能就是要个学
: 校的邮箱,什么的。或者是有的要教授写封信,
: IP这个如果不好弄就算了,弄不好以为是有病毒。

1 (共1页)
进入EmergingNetworking版参与讨论
相关主题
关于局域网内路由的问题信号满格,xp下笔记本无线总是“正在获取网络地址”
VPN连到公司,浏览网页是不是也走VPN?在一个device里面同时实现router和switch有什么好处?
我们公司boss push我们IPv6了。不用路由器如何使用IP摄像头
ATT的无线路由器的问题。用一台ubuntu做proxy? (转载)
智能手机流量怎么算的? (转载)AS number change on 1/1/2009
不简单也不复杂的虚拟机网络问题IPv6 deployment
请教一个静态路由设置问题NANOG 56
请教各位大牛一个问题。。。ip地址后三位树删除还剩下什么信息呢?
相关话题的讨论汇总
话题: ip话题: 教育网络话题: 计算机话题: nat话题: public