if you use <script language="c#" runat="server">
   String remoteip = Request.UserHostAddress;
 </script>
 
Here Request is the property of the super class Page.remoteip wil become an instance variable for the current page class and will be initialized when the page object is instantiated, before the body of the page class construtor is called. But at that time, the object state is not properly set up yet, so it is reasonable that the compiler complains about itif you insist, you can do<script language="c#" runat="server">
 String remoteip = System.Web.HttpContext.Current.Request.UserHostAddress;
</script>