nsc_Visitor.getIP()

Returns the string containing the site visitor's IP address.

Example

$(function() {
    // Adding the chat widget initialization event listener
    // Prior to this moment the nsc_Visitor object is absent in the context
    $(document).on('netroxinit', function(event, data) {
        if (!data.real) { // Not a status change but initialization in any status during page loading
  		alert("Your IP address: " + nsc_Visitor.getIP());
        }
    });
});

All rights reserved. Copyright © 2017 Netrox SC
Host CMS