客户端机器位置 [英] client machine location

查看:92
本文介绍了客户端机器位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取客户端计算机的位置名称.对我来说,即使我的系统位置更改为印度或任何其他国家/地区名称,当我使用

How to get the client machine location name. for me i am not getting when i use

System.Threading.Thread.CurrentThread.CurrentCulture

时,它也始终显示美国..

its always showing United States even if my system location is changed to India or any other country name..

推荐答案

CurrentCulture不提供位置信息,而是提供线程的区域性信息.如果需要客户端计算机的位置,则需要首先获取IP地址,然后可以使用一些第三方服务从中获取IP地址.
CurrentCulture does not give Location.It gives the culture information for the thread. If you want the location of the Client machine, then you need to get the IP address first, then from it you can get the location using some third party services


请仔细阅读.这可能对您有帮助

http://www.programmableweb.com/api/ip-address-lookup [ ^ ]
Go through this.., this may helps you

http://www.programmableweb.com/api/ip-address-lookup[^]


这篇关于客户端机器位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆