287
Views
4
Comments
Solved
Get IP
Application Type
Mobile, Reactive

Hi,

I need to fetch the IP address of User's device. 

I used GetIP action available in Outsystems.

1. I am getting right IP address when I use my application by it server name in URL. I have no problem in this.

for eg: 192.158.1.38/application

2. But I am getting different and same IP address for all the users trying from different machines, If I access the application by its domain name.

for eg: www.domainname.com/application

Kindly help me to figure out this.

Thank you

2023-08-28 07-00-10
Paulo Torres
Champion
Solution

Hello,

Probably you have a firewall and the IP you are getting is the IP of firewall.

In this case you need the IP in the header, normally is used: x-forwarded-for.

2025-03-19 07-39-30
Rifaz

Hi Paulo Torres,

Thank you for your support which helped me to identify the issue. I have used GetRequestHeader action and passed "X-Forwarded-For". It is giving me different IP address. I think I need to check with network team. 

2023-08-28 07-00-10
Paulo Torres
Champion

Glad to help you.

I also had this pain in the past 😅

2025-03-19 07-39-30
Rifaz
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.