hello,
is it somehow possible to determine remote client's IP address???
or is this because of the connectivity solution of MWS (gateway, ...) just not possible?
THX for help!
regards,
Askin
hello,
is it somehow possible to determine remote client's IP address???
or is this because of the connectivity solution of MWS (gateway, ...) just not possible?
THX for help!
regards,
Askin
The connections come through the gateway, and the gateway is probably passing its own IP address in the requests to your phone running MWS.
In any case, even the gateway most probably is not receiving the client's actual IP address, but the IP address of the last proxy/gateway the client comes through. Most network operators assign IP private IP addresses to the phones, and then it is the operator's proxy/gateway address that is sent for every phone (i.e., all phones will look like they had the same IP address).
Actually, the IP-address the web-server will see, when the request comes via the gataway, is 127.0.0.1, because the request is delivered by the component on the phone that talks with the gateway.
In the original proto implementation our gateway passed the client (well, the one it saw) IP-address in a custom HTTP header field. Check what HTTP header fields are provided to your request handler; perhaps this survived into the productization as well.
Johan
doesn´t look like that
req.headers_in just provides following fields:
Host
User-Agent
Accept
Accept-Language
Accept-Encoding
Accept-Charset
Referer
Cookie
Cache-Control
Connection
unfortunately nothing where client´s IP address can be found.
Host "points" to the gateway!
anyway..thx for answer!
Askin
This discussion is very much helpful to me. Thanks
Software testing tutorial