• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Retrieve user's IP address

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Retrieve user's IP address

    Is there a built in variable or some way in-app to retrieve the reported users ip address? (like what is returned in the active sessions application for users)

  • #2
    Currently, you could pull the IP address using the current session ID from the table 'VVSESSDATA'

    Example:
    Code:
    SELECT
      vvclientip AS ipaddress
    FROM
      vvsessdata
    WHERE
      vvsessid = 'SESSIONID'

    Comment


    • #3
      Is Session id discernable via a built-in app variable or a program function? I can't seem to find a way to grab it automatically

      Comment


      • #4
        Alternately, you can use procedure:

        Code:
        vvUtility_getEnvVar('REMOTE_ADDR')
        Below is a link to the docs for this procedure.

        Comment


        • #5
          Perfect, thank you!

          Comment

          Working...
          X