SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2001
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Request - IP Address / Cold Fusion

    I am new to CF and have coded before with ASP.

    I have a CF app and would like to add the IP Address to my log data within my database.

    Within ASP it is "Request.ServerVariables("REMOTE_ADDR")" but what is it within ColdFusion

    Thanks,
    Phil

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2000
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To get the IP address, just use:

    <cfoutout>

    #REMOTE_ADDR#

    </cfoutput>
    Vidar Langberget
    Editor
    www.templeoftech.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •