I’m not sure how to explain what I want :
Let say my IMP is called “Door”
and …someone in China want to see the page generated by the Agent of “Door”. he will go to the link
https://agent.electricimp.com/xxxxxxxxxxxxxx
where xxxxxxxxxxxxxx is the URL of “Door”
Is it possible for my agent to know what is the IP adress of the computer/device that went to https://agent.electricimp.com/xxxxxxxxxxxxxx
thanks
phil
April 7, 2016, 1:47pm
2
Try the ‘x-forwarded-for’ header:
`http.onrequest(function(req, resp) {
server.log(req.headers["x-forwarded-for"]);
resp.send(200, "OK");
});`
is it possible for the Agent to know the WAN IP of the device ?
hugo
April 10, 2016, 12:05am
4
Right now, no. This is not exposed.
Is it going to be exposed at some point, it will unlock all kind of possibilities
hugo
April 12, 2016, 2:32am
6
Very likely it will become a feature, but currently no commercial customers requesting this so it hasn’t been a priority.