Recording IP address of client browser is necessity from security point of view. It helps in filtering unwanted or malicious access from a particular location.
Active Server Pages (Microsoft's ASP) has a built-in object called ServerVariables. This object holds useful information on Environmental Variables of the client browser. One the variable is "REMOTE_ADDR" which holds the IP address of the visitor.
To request the IP address of host machine, use the following code in the ASP page:
Client IP is <%= Request.ServerVariables("REMOTE_ADDR") %>