Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / VB

Whats My IP Address ?

5.00/5 (1 vote)
18 Nov 2011CPOL 6.6K  
protected void Page_Load(object sender, EventArgs e){ HttpBrowserCapabilities bc = Request.Browser; Label1.Text = IP Address= + Request.UserHostAddress;}
C#
protected void Page_Load(object sender, EventArgs e)
{
    HttpBrowserCapabilities bc = Request.Browser;
    Label1.Text = "IP Address=" + Request.UserHostAddress;
}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)