Modules

filter

 

Objects/Functions

module (N/http)

SuiteScript 2.0

ServerRequest.clientIpAddress

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=ServerRequest.clientIpAddress for more information.

N/http Module
ServerRequest.clientIpAddress
Property Description: The remote client IP address.
Type: string (read-only)
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/http Module
Parent Object: http.ServerRequest
Sibling Object Members: ServerRequest Object Members
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=ServerRequest.clientIpAddress

Example:

// Code Example 1
// Add additional code
//...
function onRequest(context){
var request = context.request;
var header = request.headers;
var remoteAddress = request.clientIpAddress;
}
...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_158232403519.html