Knowledgebase
how to get ip of the visitors (asp)
Posted by Seliwwwan, 03-14-2007, 10:13 AM | hi, i want to get client ipaddress those who are all visiting my page.
i have one listbox in my clientip.aspx.so i need to display the list of ipaddress
those who are all visiting my webpage.
can any one show mw some example regarding this please
|
Posted by Sindre, 03-14-2007, 06:09 PM | Hello,
I am not familiar with ASP, but perhaps something like this could work:
What this code does is first to check if the HTTP_X_FORWARDED_FOR value contain the IP. If not, it uses REMOTE_ADDR instead and assigns the value to UserIPAddress.
Last edited by Sindre; 03-14-2007 at 06:21 PM.
|
|
Add to Favourites
Print this Article |
Also Read