32
Views
2
Comments
How to get client device IP address?
Question

Hi all, 

I have a Mobile/PWA app where I need to get device's IP. 

I have tried HttpRequestHandler's GetIP() action which is returning proxy IP. For example, I have tried the app on my laptop and phone, both on same wifi network, and GetIP() return the same public IP from both devices. 

I have also tried x-forwarded-for header, but it is coming as empty.

How to capture's devices local IP? Please advise.

Thanks,

Karthik

Do you want localIP of mobile.

please have a look :https://www.outsystems.com/forums/discussion/51494/device-information-in-mobile/ 

Rank: #225

Hi Karthik,

You can also have a look at the below references.

https://www.outsystems.com/forge/component-overview/5389/get-device-information

https://www.outsystems.com/forums/discussion/44398/obtaining-the-client-ip-for-mobile-application/

Thanks,

Sachin