Skip to main content
Known Participant
May 27, 2016
Question

Capture and report IP address

  • May 27, 2016
  • 4 replies
  • 531 views

Any ideas on how to capture the user's IP address and report it in XML?

    This topic has been closed for replies.

    4 replies

    vajrasanaAuthor
    Known Participant
    June 2, 2016

    I was requesting some assistance or detail on creating a variable, then populating that variable, then recalling that variable, as described using JS in the post I quoted, seems that was not obviously implied in my post.

    I'm trying to help my server people, this is not my area, any help is appreciated.

    TLCMediaDesign
    Inspiring
    June 3, 2016

    Perhaps if you explain the issue in detail, there may be some other solution?

    Other that that you will definitely need AJAX, PHP or some other script to be able to gather information and write to a file.

    vajrasanaAuthor
    Known Participant
    June 3, 2016

    Indeed, thanks.

    They need to capture the IP address for authentication purposes.  Captivate is server reporting to SQL tables.   I have two user ID variables reporting identification, just need to capture IP of flash module session address into SQL for compliance with broader security policy.  ASP structure.

    Lilybiri
    Legend
    June 2, 2016

    As TLCMediadesign points out, for IP-address you need server-side scripting. That IP address is never transferred nor used to Captivate. Why would you ever use, need that address? You can retrieve account data like ID and Name from the login into a webserver or a LMS but that is totally different.

    TLCMediaDesign
    Inspiring
    June 1, 2016

    You need server side scripts to do that.

    vajrasanaAuthor
    Known Participant
    June 2, 2016

    HI, Thanks.  I noticed a post you made may 2014, text was:

    You'd need to create a user variable in Captivate and then populate the variable using JavaScript:

    function getUrlVar()

    {

         var cp = document.Captivate;
         alert(cp.cpEISetValue("m_VarHandle.yourVariable", "yourValue));

    }

    When you need the value call JavaScript in a Captivate:

    getUrlVar();

    Can you help me how to apply this to capture IP address?

    TLCMediaDesign
    Inspiring
    June 2, 2016

    That post really didn't have anything to do with what you want to do.

    BDuckWorks
    Inspiring
    May 31, 2016

    Is there a reason you would need to do this within the course, as opposed to the LMS managing these details?

    vajrasanaAuthor
    Known Participant
    May 31, 2016

    Hi

    Yes xml report is going to a server, not an LMS.