Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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..
Posted
Comments
Sunasara Imdadhusen 30-Nov-10 0:25am    
What you want TimeZone or Location?
MathewPV 30-Nov-10 1:07am    
the location in the sense the country name that the client gives

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
 
Share this answer
 
Comments
MathewPV 30-Nov-10 1:11am    
thank you Brij for your valuable answer i got the ip address i am stuck with that. please send me some links where i can find some third party services if you have any idea about that
Brij 30-Nov-10 2:41am    
There is very good article, that talks about getting location of an IP and available free service. Have a look
http://www.aspsnippets.com/Articles/Find-Visitors-Geographic-Location-using-IP-Address-in-ASP.Net.aspx
MathewPV 30-Nov-10 3:53am    
Thank you Brij i have gone through the webpage in that

'Create a WebRequest

Dim rssReq As WebRequest = _

WebRequest.Create("http://freegeoip.appspot.com/xml/" _

& ipaddress)



'Create a Proxy

Dim px As New WebProxy("http://freegeoip.appspot.com/xml/" _

& ipaddress, True)

there is some site mentioned is that a demo site after some time they make it paid..
Go through this.., this may helps you

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900