how to get ip address on button click

Posted by Pavanpp under C# on 3/14/2013 | Points: 10 | Views : 3154 | Status : [Member] | Replies : 5
i want to display the ip address when a person tries to download or while downloading any file from the website.




Responses

Posted by: Satyapriyanayak on: 3/14/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
http://www.aspsnippets.com/Articles/Get-IP-Address-of-Website-Server-using-its-URL-or-Domain-Name-in-ASPNet-using-C-and-VBNet.aspx
http://www.aspdotnet-suresh.com/2012/07/how-to-find-system-ip-address-in-aspnet.html
http://www.aspdotnet-suresh.com/2012/07/how-to-get-find-ip-address-of-client.html

If this post helps you mark it as answer
Thanks

Pavanpp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 3/14/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
refer this

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/b981bdc2-8c3c-41b9-8965-b90cd3028cd6
http://www.codeproject.com/Articles/854/How-To-Get-IP-Address-Of-A-Machine
http://www.codeproject.com/Questions/399318/How-to-Get-User-IP-address-using-csharp

Mark as Answer if its helpful to you

Pavanpp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 3/16/2013 [Member] Silver | Points: 25

Up
0
Down
Dim strHostName As String


Dim strIPAddress As String

strHostName = System.Net.Dns.GetHostName()

strIPAddress = System.Net.Dns.GetHostByName(strHostName).AddressList(0).ToString()



Regards,
Singaravel M

Pavanpp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Deadvalley on: 4/10/2013 [Member] Starter | Points: 25

Up
0
Down
Hi,
I don't think that is possible to see the visitors IP while downloading from your site.But you can make the visitors to know about their IP address and the details.Using the codes provided by the site www.IP-Details.com .

Pavanpp, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ankitsrist on: 4/10/2013 [Member] Starter | Points: 25

Up
0
Down
hello,
try this code http://www.dotnetfunda.com/codes/code3948-find-ipaddress-of-the-users-system.aspx

Pavanpp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response