user ip address

Discussion in 'Web Design & Coding' started by Nismo83, Feb 15, 2003.

  1. Nismo83

    Nismo83 OSNN AZN Addict

    Messages:
    383
    how do i store a user ip address whenever he/she posted a message in a forum. BTW, i'm using ASP
     
  2. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    There should be a global variable that can tell you the IP of the visitor. I don't know what it's called since I'm not very good at ASP.
     
  3. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Hope this helps...
    Code:
    <%
    string var;
    var = Request.ServerVariables["REMOTE_ADDR"];
    Response.Write ("REMOTE_ADDR = " + var + "<br>");
    %>
    :happy:
     
  4. Nismo83

    Nismo83 OSNN AZN Addict

    Messages:
    383
    thanks.