Article ID: 123507, created on Nov 13, 2014, last review on Nov 13, 2014

  • Applies to:
  • Business Automation

Symptoms

How to check from what IP address Online Store order was placed?

Cause

Currently it is not possible to see the source IP address for online store order in the PBA-E Control Panel. There is feature request #PBA-47731 to implement such possibility.

Resolution

In /usr/local/bm/log/xmlrpcd.*.log it is possible to see how the order was created.

IPAddressID parameter in "Pay Tool Data" section of the PlaceOrderAndAuthorize_API call contains the customers current IP address.

For example:

==> xmlrpcd.4.log <==
XmlRpcServer::acceptConnection: socket 6
XmlRpcServer::acceptConnection: creating a connection
***
[14-01-25 20:18:17.708 XRExecutor  TH06668 TRC] +++[0] virtual void     Execute::execute(XmlRpc::XmlRpcValue&, XmlRpc::XmlRpcValue&)({[Container:BM_Container,Lang:en,Method:PlaceOrderAndAuthorize_API
,Object:BM_Object,Params:{****,IPAddressID=192.168.34.223}]})

=========================

In case this field contains 127.0.0.1 it might mean whether API call was placed using curl client from PBA-E management node, or some API proxy application is running between Online Store host and PBA-E management host.

In second case real IP address can be found on the Online Store host in the store log and apache log:

=======/usr/local/bm/templatestore/logs/store.log=======

[14-01-25 20:18:17.332 TEMPLATESTORE 0000036 NTE]     #######  start trace      #########################
[14-01-25 20:18:17.343 TEMPLATESTORE 0000036 NTE]     started at 14-01-25 20:18:17.343
[14-01-25 20:18:17.343 BMAPI         0000036 NTE]     PHPSESSID: nj8jcgjpnc242gi16ep8rnm513
[14-01-25 20:18:17.344 BMAPI         0000036 NTE]     USERID: NOBODY
[14-01-25 20:18:17.344 TEMPLATESTORE 0000036 NTE]   SCRIPT_DIR:
[14-01-25 20:18:17.345 TEMPLATESTORE 0000036 NTE]     Locale::Locale en
[14-01-25 20:18:17.345 TEMPLATESTORE 0000036 NTE]       Locale::GetDictionary locale=en
[14-01-25 20:18:17.345 TEMPLATESTORE 0000036 NTE]         Locale::ParseDictionary ../cache/1/lang/en.inc
[14-01-25 20:18:17.346 TEMPLATESTORE 0000036 NTE]   Request from 192.168.34.223 for StoreID #1,     VendorID #1, __http_index_php=

=============

======/var/log/httpd/access.log:=====

192.168.34.223 - - [25/Jan/2014:20:17:06 -0500] "GET /index.php?info=statebook&CountryID=ru HTTP/1.1" 200 5396 "http://10.39.87.43/index.php?NAME_PATH=HOSTING_PATH&SCREEN=CHECKOUT_SCREEN" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0"

===================

Search Words

order placed

IP address

198398b282069eaf2d94a6af87dcb3ff caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF