Web development resources
ASP: Display the IP Address of Visitor


Some web sites display the IP address of a visitor as a combination message of "we're watching you/look at how secure we are". It's a very simple task that can be accomplished in a single line of code. The following code:



Has the following output:

Your IP address is: 38.103.63.60

The Request.ServerVariables method is pretty useful and contains a lot of information. Below is a script you can use to display all the ServerVariables, and what their value is. I'd display the results on this page, but they are messy, and some reveal information about the server that my host might not like me showing.