sql server - how to create a code for IP-address locator which takes IP-address from a table in database -


I am working on a project that collects the user's IP address and stores them in the database. I want to know the methods or methods from which I can track these IPs and produce their geographic latitude and longitude details. I do not want to create a website or an app ... I just want to work locally on my system

I do not think you can do directly in T-SQL, but you can use CLR with C # You can use

  (var objClient = new System.Net.WebClient ()) {var strFile = objClient.DownloadString ("http://freegeoip.net/xml/192.168. 0.1 "); }   

View

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -