finding out request/source -ip in trigger http request

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
LeonGaultier
Posts: 7
Joined: 17 Jul 2015 06:26

finding out request/source -ip in trigger http request

Post by LeonGaultier » 06 Aug 2015 08:34

how can i find the source/request ip in the request-string of trigger http request. i will use it in variable.
header?

sorry for my bad bad english.


greet thanks
leon

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: finding out request/source -ip in trigger http request

Post by Martin » 06 Aug 2015 19:13

You currently can't get the remote IP of the caller in trigger HTTP Request. It should be possible to extend the trigger to supply the remote IP and port. I'll add it to the todo-list.

When you have control of the caller, you could add the IP to the header and extract the value from the header in the flow on the other device.
You could also try to use netstat to detect the remote IP in your flow, however this requires to parse the output from netstat.

Regards,
Martin

LeonGaultier
Posts: 7
Joined: 17 Jul 2015 06:26

Re: finding out request/source -ip in trigger http request

Post by LeonGaultier » 11 Aug 2015 11:54

Hallo Marvin,

Das mit dem im Header mit schicken ist eine gute Idee, das werde ich mal machen. Manchmal ist es so einfach :D


Danke Dir
Leon

Post Reply