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