ip


原文链接: ip

timezone https://timezonedb.com/download
https://www.ip2location.com/free/zipcode-metro

https://github.com/rxliuli/v2rayBackup/blob/master/tools/geoip/geoip_gen.go

github.com/G-Core/geodns # 国家 区域

Locale
timezone
gmt_offset
Alpha2: "LB",
Alpha3: "LBN",
CountryCode: "961",

China Postal Code (中国邮政编码):
Time Zone America/Los_Angeles
GMT Offset UTC/GMT -8.00 hours
DST No
City San Mateo
Region California
Country United States
互联网的IP地址和AS号码分配是分级进行的。
ICANN(IANA)将地址分配给区域互联网地址注册机构(RIR),
RIR负责各自地区的IP地址分配、注册和管理工作。
通常RIR会直接或通过当地的国家级互联网注册机构(NIR)将IP地址进一步分配给本地互联网注册机构(LIR),然后由LIR进一步分配给下游的互联网服务提供商或终端用户。
目前,全球共有5个RIR:
ARIN(负责北美地区业务)、
RIPE NCC(负责欧洲地区业务)、
APNIC(负责亚太地区业务)、
LACNIC(负责拉丁美洲地区业务)、
AfriNIC(负责非洲地区业务)。

统一电话号码 github.com/dicefm/extraterrestrial

fiorix/freegeoip: IP geolocation web server

获取用户的真实IP

tomasen/realip

http://blog.csdn.net/wangshubo1989/article/details/78066344

http://ip.taobao.com/service/getIpInfo.php?ip=62.12.55.3

国家 代码转换 cn

https://github.com/rainycape/countries

[{"isoCode":"cn","name":"中国","phoneCode":"86"},{"isoCode":"tw","name":"台湾地区","phoneCode":"886"},{"isoCode":"hk","name":"中国香港","phoneCode":"852"},{"isoCode":"mo","name":"中国澳门","phoneCode":"853"},{"isoCode":"al","name":"阿尔巴尼亚","phoneCode":"355"},{"isoCode":"dz","name":"阿尔及利亚","phoneCode":"213"},{"isoCode":"af","name":"阿富汗","phoneCode":"93"},{"isoCode":"ar","name":"阿根廷","phoneCode":"54"},{"isoCode":"ae","name":"阿联酋","phoneCode":"971"},{"isoCode":"aw","name":"阿鲁巴岛","phoneCode":"297"},{"isoCode":"om","name":"阿曼","phoneCode":"968"},{"isoCode":"az","name":"阿塞拜疆","phoneCode":"994"},{"isoCode":"eg","name":"埃及","phoneCode":"20"},{"isoCode":"et","name":"埃塞俄比亚","phoneCode":"251"},{"isoCode":"ie","name":"爱尔兰","phoneCode":"353"},{"isoCode":"ee","name":"爱沙尼亚","phoneCode":"372"},{"isoCode":"ad","name":"安道尔","phoneCode":"376"},{"isoCode":"ao","name":"安哥拉","phoneCode":"244"},{"isoCode":"ai","name":"安圭拉","phoneCode":"1264"},{"isoCode":"ag","name":"安提瓜和巴布达","phoneCode":"1"},{"isoCode":"at","name":"奥地利","phoneCode":"43"},{"isoCode":"ax","name":"奥兰岛","phoneCode":"000"},{"isoCode":"au","name":"澳大利亚","phoneCode":"61"},{"isoCode":"bb","name":"巴巴多斯","phoneCode":"1246"},{"isoCode":"pg","name":"巴布亚新几内亚","phoneCode":"675"},{"isoCode":"bs","name":"巴哈马群岛","phoneCode":"1242"},{"isoCode":"pk","name":"巴基斯坦","phoneCode":"92"},{"isoCode":"py","name":"巴拉圭","phoneCode":"595"},{"isoCode":"ps","name":"巴勒斯坦领土","phoneCode":"970"},{"isoCode":"bh","name":"巴林岛","phoneCode":"973"},{"isoCode":"pa","name":"巴拿马","phoneCode":"507"},{"isoCode":"br","name":"巴西","phoneCode":"55"},{"isoCode":"by","name":"白俄罗斯","phoneCode":"375"},{"isoCode":"bm","name":"百慕大群岛","phoneCode":"1"},{"isoCode":"bg","name":"保加利亚","phoneCode":"359"},{"isoCode":"mp","name":"北马里亚纳群岛","phoneCode":"1670"},{"isoCode":"bj","name":"贝宁","phoneCode":"229"},{"isoCode":"be","name":"比利时","phoneCode":"32"},{"isoCode":"is","name":"冰岛","phoneCode":"354"},{"isoCode":"bo","name":"玻利维亚","phoneCode":"591"},{"isoCode":"pr","name":"波多黎各","phoneCode":"1"},{"isoCode":"ba","name":"波黑","phoneCode":"387"},{"isoCode":"pl","name":"波兰","phoneCode":"48"},{"isoCode":"bw","name":"博茨瓦纳","phoneCode":"267"},{"isoCode":"bz","name":"伯利兹","phoneCode":"501"},{"isoCode":"bt","name":"不丹","phoneCode":"975"},{"isoCode":"bf","name":"布基纳法索","phoneCode":"226"},{"isoCode":"bi","name":"布隆迪","phoneCode":"257"},{"isoCode":"bv","name":"布维岛","phoneCode":"000"},{"isoCode":"kp","name":"朝鲜","phoneCode":"850"},{"isoCode":"gq","name":"赤道几内亚","phoneCode":"240"},{"isoCode":"dk","name":"丹麦","phoneCode":"45"},{"isoCode":"de","name":"德国","phoneCode":"49"},{"isoCode":"tl","name":"东帝汶","phoneCode":"670"},{"isoCode":"tp","name":"东帝汶","phoneCode":"000"},{"isoCode":"tl","name":"东帝汶","phoneCode":"670"},{"isoCode":"tp","name":"东帝汶","phoneCode":"000"},{"isoCode":"tg","name":"多哥","phoneCode":"228"},{"isoCode":"dm","name":"多米尼加","phoneCode":"1767"},{"isoCode":"do","name":"多米尼加共和国","phoneCode":"1809"},{"isoCode":"ru","name":"俄罗斯联邦","phoneCode":"7"},{"isoCode":"sv","name":"厄尔萨尔瓦多","phoneCode":"503"},{"isoCode":"ec","name":"厄瓜多尔","phoneCode":"593"},{"isoCode":"er","name":"厄立特里亚","phoneCode":"291"},{"isoCode":"fr","name":"法国","phoneCode":"33"},{"isoCode":"fo","name":"法罗群岛","phoneCode":"298"},{"isoCode":"pf","name":"法属玻里尼西亚","phoneCode":"689"},{"isoCode":"gf","name":"法属圭亚那","phoneCode":"594"},{"isoCode":"tf","name":"法属南半球领地","phoneCode":"000"},{"isoCode":"ph","name":"菲律宾","phoneCode":"63"},{"isoCode":"fi","name":"芬兰","phoneCode":"358"},{"isoCode":"cv","name":"佛得角","phoneCode":"238"},{"isoCode":"fk","name":"福克兰群岛 (马尔维纳斯)","phoneCode":"500"},{"isoCode":"gm","name":"冈比亚","phoneCode":"220"},{"isoCode":"cg","name":"刚果共和国","phoneCode":"242"},{"isoCode":"cd","name":"刚果民主共和国","phoneCode":"243"},{"isoCode":"co","name":"哥伦比亚","phoneCode":"57"},{"isoCode":"cr","name":"哥斯达黎加","phoneCode":"506"},{"isoCode":"gg","name":"格恩西岛","phoneCode":"44"},{"isoCode":"gd","name":"格林纳达","phoneCode":"1473"},{"isoCode":"gl","name":"格陵兰","phoneCode":"299"},{"isoCode":"cu","name":"古巴","phoneCode":"53"},{"isoCode":"gp","name":"瓜德罗普岛","phoneCode":"590"},{"isoCode":"gu","name":"关岛","phoneCode":"1671"},{"isoCode":"gy","name":"圭亚那","phoneCode":"592"},{"isoCode":"kz","name":"哈萨克斯坦","phoneCode":"7"},{"isoCode":"ht","name":"海地","phoneCode":"509"},{"isoCode":"kr","name":"韩国","phoneCode":"82"},{"isoCode":"nl","name":"荷兰","phoneCode":"31"},{"isoCode":"an","name":"荷属安的列斯","phoneCode":"599"},{"isoCode":"hm","name":"赫德岛及麦当劳群岛","phoneCode":"000"},{"isoCode":"me","name":"黑山共和国","phoneCode":"382"},{"isoCode":"hn","name":"洪都拉斯","phoneCode":"504"},{"isoCode":"ki","name":"基里巴斯","phoneCode":"686"},{"isoCode":"dj","name":"吉布提","phoneCode":"253"},{"isoCode":"kg","name":"吉尔吉斯斯坦","phoneCode":"996"},{"isoCode":"gn","name":"几内亚","phoneCode":"224"},{"isoCode":"gw","name":"几内亚比绍","phoneCode":"245"},{"isoCode":"cb","name":"加勒比海国家","phoneCode":"000"},{"isoCode":"ca","name":"加拿大","phoneCode":"1"},{"isoCode":"gh","name":"加纳","phoneCode":"233"},{"isoCode":"ga","name":"加蓬","phoneCode":"241"},{"isoCode":"kh","name":"柬埔寨","phoneCode":"855"},{"isoCode":"cz","name":"捷克共和国","phoneCode":"420"},{"isoCode":"zw","name":"津巴布韦","phoneCode":"263"},{"isoCode":"cm","name":"喀麦隆","phoneCode":"237"},{"isoCode":"qa","name":"卡塔尔","phoneCode":"974"},{"isoCode":"ky","name":"开曼群岛","phoneCode":"1"},{"isoCode":"km","name":"科摩罗","phoneCode":"269"},{"isoCode":"ko","name":"科索沃","phoneCode":"000"},{"isoCode":"ci","name":"科特迪瓦","phoneCode":"225"},{"isoCode":"kw","name":"科威特","phoneCode":"965"},{"isoCode":"cc","name":"可可群岛","phoneCode":"61"},{"isoCode":"hr","name":"克罗地亚","phoneCode":"385"},{"isoCode":"ke","name":"肯尼亚","phoneCode":"254"},{"isoCode":"ck","name":"库克群岛","phoneCode":"682"},{"isoCode":"lv","name":"拉脱维亚","phoneCode":"371"},{"isoCode":"ls","name":"莱索托","phoneCode":"266"},{"isoCode":"la","name":"老挝","phoneCode":"856"},{"isoCode":"lb","name":"黎巴嫩","phoneCode":"961"},{"isoCode":"lr","name":"利比里亚","phoneCode":"231"},{"isoCode":"ly","name":"利比亚","phoneCode":"218"},{"isoCode":"lt","name":"立陶宛","phoneCode":"370"},{"isoCode":"li","name":"列支敦士登","phoneCode":"423"},{"isoCode":"re","name":"留尼汪岛","phoneCode":"262"},{"isoCode":"lu","name":"卢森堡","phoneCode":"352"},{"isoCode":"rw","name":"卢旺达","phoneCode":"250"},{"isoCode":"ro","name":"罗马尼亚","phoneCode":"40"},{"isoCode":"mg","name":"马达加斯加","phoneCode":"261"},{"isoCode":"mt","name":"马耳他","phoneCode":"356"},{"isoCode":"mv","name":"马尔代夫","phoneCode":"960"},{"isoCode":"mw","name":"马拉维","phoneCode":"265"},{"isoCode":"my","name":"马来西亚","phoneCode":"60"},{"isoCode":"ml","name":"马里","phoneCode":"223"},{"isoCode":"mk","name":"马其顿","phoneCode":"389"},{"isoCode":"mh","name":"马歇尔群岛","phoneCode":"692"},{"isoCode":"yt","name":"马约特岛","phoneCode":"269"},{"isoCode":"mu","name":"毛里求斯","phoneCode":"230"},{"isoCode":"mr","name":"毛里塔尼亚","phoneCode":"222"},{"isoCode":"us","name":"美国","phoneCode":"1"},{"isoCode":"as","name":"美属萨摩亚","phoneCode":"1684"},{"isoCode":"vi","name":"美属维尔京群岛","phoneCode":"1340"},{"isoCode":"mn","name":"蒙古","phoneCode":"976"},{"isoCode":"ms","name":"蒙特色拉特岛","phoneCode":"1664"},{"isoCode":"bd","name":"孟加拉国","phoneCode":"880"},{"isoCode":"pe","name":"秘鲁","phoneCode":"51"},{"isoCode":"fm","name":"密克罗尼西亚联邦","phoneCode":"691"},{"isoCode":"mm","name":"缅甸","phoneCode":"95"},{"isoCode":"md","name":"摩尔多瓦","phoneCode":"373"},{"isoCode":"ma","name":"摩洛哥","phoneCode":"212"},{"isoCode":"mc","name":"摩纳哥","phoneCode":"377"},{"isoCode":"mz","name":"莫桑比克","phoneCode":"258"},{"isoCode":"mx","name":"墨西哥","phoneCode":"52"},{"isoCode":"mq","name":"那提尼克","phoneCode":"596"},{"isoCode":"na","name":"纳米比亚","phoneCode":"264"},{"isoCode":"za","name":"南非","phoneCode":"27"},{"isoCode":"aq","name":"南极洲","phoneCode":"672"},{"isoCode":"gs","name":"南乔治亚及南三明治群岛","phoneCode":"000"},{"isoCode":"ss","name":"南苏丹","phoneCode":"000"},{"isoCode":"np","name":"尼泊尔","phoneCode":"977"},{"isoCode":"ni","name":"尼加拉瓜","phoneCode":"505"},{"isoCode":"ne","name":"尼日尔","phoneCode":"227"},{"isoCode":"ng","name":"尼日利亚","phoneCode":"234"},{"isoCode":"nu","name":"纽埃岛","phoneCode":"683"},{"isoCode":"no","name":"挪威","phoneCode":"47"},{"isoCode":"nf","name":"诺福克岛","phoneCode":"672"},{"isoCode":"pw","name":"帕劳群岛","phoneCode":"680"},{"isoCode":"pn","name":"皮特克恩岛","phoneCode":"870"},{"isoCode":"pt","name":"葡萄牙","phoneCode":"351"},{"isoCode":"tt","name":"千里达及托巴哥","phoneCode":"1868"},{"isoCode":"jp","name":"日本","phoneCode":"81"},{"isoCode":"se","name":"瑞典","phoneCode":"46"},{"isoCode":"ch","name":"瑞士","phoneCode":"41"},{"isoCode":"ws","name":"萨摩亚","phoneCode":"685"},{"isoCode":"rs","name":"塞尔维亚","phoneCode":"381"},{"isoCode":"cs","name":"塞尔维亚蒙特内哥罗","phoneCode":"000"},{"isoCode":"sl","name":"塞拉利昂","phoneCode":"232"},{"isoCode":"sn","name":"塞内加尔","phoneCode":"221"},{"isoCode":"cy","name":"塞浦路斯","phoneCode":"357"},{"isoCode":"sc","name":"塞舌尔","phoneCode":"248"},{"isoCode":"sa","name":"沙特阿拉伯","phoneCode":"966"},{"isoCode":"cx","name":"圣诞岛","phoneCode":"61"},{"isoCode":"st","name":"圣多美及普林西比","phoneCode":"239"},{"isoCode":"sh","name":"圣赫勒拿","phoneCode":"290"},{"isoCode":"kn","name":"圣克里斯多福和尼维斯","phoneCode":"1869"},{"isoCode":"lc","name":"圣卢西亚岛","phoneCode":"1"},{"isoCode":"sm","name":"圣马力诺","phoneCode":"378"},{"isoCode":"pm","name":"圣皮瑞及麦克隆","phoneCode":"508"},{"isoCode":"vc","name":"圣文森及格瑞那丁","phoneCode":"1"},{"isoCode":"lk","name":"斯里兰卡","phoneCode":"94"},{"isoCode":"sk","name":"斯洛伐克共和国","phoneCode":"421"},{"isoCode":"si","name":"斯洛文尼亚","phoneCode":"386"},{"isoCode":"sj","name":"斯瓦尔巴群岛","phoneCode":"000"},{"isoCode":"sz","name":"斯威士兰","phoneCode":"268"},{"isoCode":"sd","name":"苏丹","phoneCode":"249"},{"isoCode":"sr","name":"苏里南","phoneCode":"597"},{"isoCode":"so","name":"索马里","phoneCode":"252"},{"isoCode":"sb","name":"所罗门群岛","phoneCode":"677"},{"isoCode":"tj","name":"塔吉克斯坦","phoneCode":"992"},{"isoCode":"th","name":"泰国","phoneCode":"66"},{"isoCode":"tz","name":"坦尚尼亚","phoneCode":"255"},{"isoCode":"to","name":"汤加","phoneCode":"676"},{"isoCode":"tn","name":"突尼斯","phoneCode":"216"},{"isoCode":"tv","name":"图瓦卢","phoneCode":"688"},{"isoCode":"tr","name":"土耳其","phoneCode":"90"},{"isoCode":"tc","name":"土克斯及开科斯群岛","phoneCode":"1649"},{"isoCode":"tm","name":"土库曼斯坦","phoneCode":"993"},{"isoCode":"tk","name":"托克劳","phoneCode":"690"},{"isoCode":"wf","name":"瓦利斯及福杜纳群岛","phoneCode":"681"},{"isoCode":"vu","name":"瓦努阿图","phoneCode":"678"},{"isoCode":"gt","name":"危地马拉","phoneCode":"502"},{"isoCode":"ve","name":"委内瑞拉","phoneCode":"58"},{"isoCode":"bn","name":"文莱达鲁萨兰国","phoneCode":"673"},{"isoCode":"ug","name":"乌干达","phoneCode":"256"},{"isoCode":"ua","name":"乌克兰","phoneCode":"380"},{"isoCode":"uy","name":"乌拉圭","phoneCode":"598"},{"isoCode":"uz","name":"乌兹别克斯坦","phoneCode":"998"},{"isoCode":"es","name":"西班牙","phoneCode":"34"},{"isoCode":"eh","name":"西弗里斯兰","phoneCode":"000"},{"isoCode":"gr","name":"希腊","phoneCode":"30"},{"isoCode":"sg","name":"新加坡","phoneCode":"65"},{"isoCode":"nc","name":"新喀里多尼亚","phoneCode":"687"},{"isoCode":"nz","name":"新西兰","phoneCode":"64"},{"isoCode":"hu","name":"匈牙利","phoneCode":"36"},{"isoCode":"sy","name":"叙利亚","phoneCode":"963"},{"isoCode":"jm","name":"牙买加","phoneCode":"1"},{"isoCode":"am","name":"亚美尼亚","phoneCode":"374"},{"isoCode":"ye","name":"也门","phoneCode":"967"},{"isoCode":"iq","name":"伊拉克","phoneCode":"964"},{"isoCode":"ir","name":"伊朗","phoneCode":"98"},{"isoCode":"il","name":"以色列","phoneCode":"972"},{"isoCode":"it","name":"意大利","phoneCode":"39"},{"isoCode":"in","name":"印度","phoneCode":"91"},{"isoCode":"id","name":"印度尼西亚","phoneCode":"62"},{"isoCode":"gb","name":"英国","phoneCode":"44"},{"isoCode":"im","name":"英属曼岛","phoneCode":"44"},{"isoCode":"vg","name":"英属维尔京群岛","phoneCode":"1284"},{"isoCode":"io","name":"英属印度洋领地","phoneCode":"000"},{"isoCode":"jo","name":"约旦","phoneCode":"962"},{"isoCode":"vn","name":"越南","phoneCode":"84"},{"isoCode":"zm","name":"赞比亚","phoneCode":"260"},{"isoCode":"je","name":"泽西岛","phoneCode":"44"},{"isoCode":"td","name":"乍得","phoneCode":"235"},{"isoCode":"gi","name":"直布罗陀","phoneCode":"350"},{"isoCode":"cl","name":"智利","phoneCode":"56"},{"isoCode":"cf","name":"中非共和国","phoneCode":"236"},{"isoCode":"ge","name":"佐治亚","phoneCode":"995"},{"isoCode":"nr","name":"瑙鲁","phoneCode":"674"},{"isoCode":"va","name":"梵蒂冈 (教廷)","phoneCode":"39"},{"isoCode":"fj","name":"斐济","phoneCode":"679"},{"isoCode":"oo","name":"其他","phoneCode":"000"}]

`