Discussion:
How to get the public ip address and private ip address of the server
(too old to reply)
unknown
2007-02-20 09:47:56 UTC
Permalink
hai

I got a problem , in my project i have to get the ip address of public i and private ip using asp.net

Can any one help me in getting the code
---
Posted via DotNetSlackers.com
Newbie Coder
2007-05-12 22:27:25 UTC
Permalink
Siva,

Local IP:

Imports System.Net

Dim ipAddress As IPHostEntry = Dns.GetHostByName(Dns.GetHostName)
TextBox1.Text = ipAddress.AddressList.GetValue(0).ToString

External IP:

Query this address:

http://checkip.dyndns.org

Use regex to get the index of the substring that contains the downloaded
code from the above url & return it
--
Newbie Coder
Post by unknown
hai
I got a problem , in my project i have to get the ip address of public i
and private ip using asp.net
Post by unknown
Can any one help me in getting the code
---
Posted via DotNetSlackers.com
Loading...