Read client IP in microflow

0
Is there a possibility to read client IP in microflow? I am using Mendix 6.10.18
asked
1 answers
1

I’m not sure for Mendix 6, but it is possible in Mendix 8.

In Mendix 8 you need to drop into a Java Action. Get the RuntimeRequest for the current context, then check if the X-Forwarded-For header is present. If it isn’t, you can just call getRemoteAddr() on the RuntimeRequest for the IP address. If it is present you need to parse the header to get the IP address.

Hope this helps.

answered