I share my domain link in social media network. i want to monitor the users clicks the link from which social, media, their ip address, their country. iam using the below code to get the info.
Dim url As String = "http://ipinfo.io"
Try
Dim request As WebRequest = WebRequest.Create(url)
Dim ws As WebResponse = request.GetResponse()
Dim jsonString As String = String.Empty
Using sreader As System.IO.StreamReader = New System.IO.StreamReader(ws.GetResponseStream())
jsonString = sreader.ReadToEnd()
End Using
Dim jsSerializer As System.Web.Script.Serialization.JavaScriptSerializer = New System.Web.Script.Serialization.JavaScriptSerializer()
Dim Information As ClientInfo = jsSerializer.Deserialize(Of ClientInfo)(jsonString)
Catch ex As Exception
End Try
but it gives me the info of the hosting ip address, and country of my site.