Usage Note 57933: Access a client application's IP address when you run a SAS® stored process in SAS® 9.4
In SAS® 9.3, a SAS stored process can access a client application's IP address by referencing the _RMTADDR parameter that is passed to the SAS® Stored Process Server. However, in SAS 9.4 and later, this parameter does not contain the IP address of the client application.
You can configure the SAS Stored Process Web Application to pass the value of the client application's IP
address by following these steps:
- Modify the Stored Process Web Application's Params.config file, which resides on the Application Web Server machine in a location similar to this:
.../Lev1/Web/WebAppServer/SASServer1_1/sas_webapps/sas.storedprocess.war/Params.config
- In the Params.config file, find the following line:
_rmtaddr=$servlet.remote.addr
Change the above line to this:
_rmtaddr=$servlet.header.x-forwarded-for
- Restart your Application Web Server to activate the change.
A stored process can access the _RMTADDR parameter value by referencing
the &_RMTADDR macro variable.
When you submit a stored process request, specify /do (and not /do1) on the URL. Here is an example:
http://your.server.com/SASStoredProcess/do
Note: If you install a later version of the Stored Process Web Application, you will need to
modify the Params.config file again.
Operating System and Release Information
| SAS System | SAS Integration Technologies | z/OS | 9.4 TS1M0 | |
| Microsoft® Windows® for x64 | 9.4 TS1M0 | |
| Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | |
| Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | |
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | |
| Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | |
| Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | |
| Microsoft Windows 8.1 Pro x64 | 9.4 TS1M0 | |
| Microsoft Windows 10 | 9.4 TS1M0 | |
| Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | |
| Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | |
| Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | |
| Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | |
| Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | |
| Microsoft Windows Server 2012 Std | 9.4 TS1M0 | |
| Windows 7 Enterprise x64 | 9.4 TS1M0 | |
| Windows 7 Professional x64 | 9.4 TS1M0 | |
| 64-bit Enabled AIX | 9.4 TS1M0 | |
| 64-bit Enabled Solaris | 9.4 TS1M0 | |
| HP-UX IPF | 9.4 TS1M0 | |
| Linux for x64 | 9.4 TS1M0 | |
| Solaris for x64 | 9.4 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In SAS 9.4, you can configure the SAS® Stored Process Server to pass the value of the client application's IP address.
| Date Modified: | 2016-04-14 16:26:14 |
| Date Created: | 2016-03-25 14:56:30 |