Please see my comment to the question.
If you have some URI and want to know IP address, there is no one-to-one correspondence, as any host can serve multiple IP addresses. This is not related to ASP.NET or HTTP and is the responsibility of DNS.
For example:
System.Net.IPAddress[] addresses = System.Net.Dns.GetHostAddresses("www.CodeProject.com");
Note, this is an array of IP addresses, not just one.
If you need to get an IP address of the client, more exactly, of the HTTP request (not response, as you always know it on the server side and it is not actually used), you can use
HttpRequest.ServerVariables["REMOTE_ADDR"];
http://msdn.microsoft.com/en-us/library/system.web.httprequest.servervariables.aspx[
^].
Please see also:
http://www.w3schools.com/asp/coll_servervariables.asp[
^].
—SA