Hai Friends
I am Developing a application in that i am returning the ipaddress for the patricular system and save it in the database.but when check the database it is showing the server ip address but i want get the particular ip address who is running that application.
So far i have used this coding:
Public Function GetIPAddress() As String
Dim strHostName As String = System.Net.Dns.GetHostName()
Dim strHostName1 As String = System.Net.Dns.GetHostName()
Dim ipHostInfo As System.Net.IPHostEntry = System.Net.Dns.Resolve(System.Net.Dns.GetHostName())
Dim ipAddress As System.Net.IPAddress = ipHostInfo.AddressList(0)
Return ipAddress.ToString()
End Function