RESTful API and local IP address
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Multi-Tenant Direct, Dedicated-Direct, Local, TotalCare
Description
When RESTful API returns an error message "Client must be on local IP address", consult two following knowledge articles:
- RESTful API Requests are accepted only from localhost
- RESTful API: Client must be on local IP address
- They are relevant when RESTful API calls can be made from localhost and no additional configuration is needed.
- However, in case the RESTful API call cannot be made from localhost and they originate from a specific IP address, additional configuration is needed in $alephe_root/www_server.conf.
Resolution
The variable "local_ip_address" must be defined in $alephe_root/www_server.conf (containing the local IP address to which the WWW server is listening). This IP address is checked by the DLF service against the IP address sent by RESTful API call.
The denied IP address can be seen in $LOGDIR/www_server_499x.log as:
Requests are accepted only from local IP Your client IP:001.002.003.004
Add to www_server.conf:
setenv local_ip_address "1.2.3.4"
and restart WWW server using util W-3-1.
- Article last edited: 07-Jun-2017