chitika

Sunday, September 11, 2011

How to get ip address in asp?

This site provides users with the information about asp, how to get ip address, how to find ip address, and more.

If you think that this site is helpful, please recommend your friends to visit our site.


How to get ip address in asp?

The following is the code to find ip address in asp:


--------------------------------------------------------------------------------
< %
    Dim sIPAddress

    sIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")

    If sIPAddress="" Then 
        sIPAddress = Request.ServerVariables("REMOTE_ADDR")
    end if

    response.write sIPAddress
% >

No comments:

Post a Comment

For other hundreds of computer repair tips, tricks, tweaks, guide, help, please go to


http://website.edusoftmax.com