If you are looking for something in ASP, then you can use

Request.ServerVariables("REMOTE_ADDR")

This will tell you the IP address of the computer requesting your app.