Sample ASP script for getting your public IP address

Wrap this in HTML, BODY and % tags

Dim UserIPAddress
UserIPAddress = Request.ServerVariables(”HTTP_X_FORWARDED_FOR”)
If UserIPAddress = “” Then
UserIPAddress = Request.ServerVariables(”REMOTE_ADDR”)
End If
response.write(UserIPAddress)

Post this on a webserver that you have access to as something.asp, and use that address in the gadget.

One Response to “Sample ASP script for getting your public IP address”

  1. Puthut Agus Y Says:

    Thanks,
    Search …. and google found it.
    Good reference

    Best Regards

Leave a Reply