You can use this code
PHP Code:
Response.Write(Request.ServerVariables["remote_addr"]); 
or

PHP Code:
Response.Write(Request.UserHostAddress); 
hope it helped..