How to Get User IP in Outsystems Reactive APP

Hi

I'm new to outsystems; just finished the Reactive Guided Path and I'm struggling with a question.

I need to know how to get or read a user's IP address inside a reactive web app.

Context:

I have a blank Reactive page with an input ExamId and a button "Enter exam". The user doesn't need to be logged/registered to enter enter the page or use the button. When the user clicks the button i need to read the user's IP address so that I can:

1 - Register the exam in the database (if it's the 1st time someone enters that exam)

2 - Block users that try to re-enter the exam from a different Ip Adress


This community is fantastic, thank you in advance

Solution

Hi David,

For your use-case, you can use the GetIP server action to get the End-user system IP address

GetIP Server Action is -> defined in the HTTPRequestHandler Extension module from where you can take the reference using Manage Dependencies Window as shown below...

Hope this helps you!


Regards,

Benjith Sam

Solution

Thank you much Benjith Sam

So simple and so effective

David Roque wrote:

Thank you much Benjith Sam

So simple and so effective

You're most welcome, David :)

Glad I could be of help :)


Regards,

Benjith Sam