Is it somehow possible to find out the IP address of a client accessing my app on Backendless? For example when they make a request to the Data Service or a custom event handler?
No, we do not pass that information to custom business logic in the current implementation. There is an internal ticket request that change, it will be possible soon.
I was wondering if this feature has been implemented yet.
Has this feature been added yet?
Hi @mark-piller are there any updates on this feature? Thanks!
Could you check if this code shows your IP?
console.log( request.context.httpHeaders['X-Real-IP'], request.context.httpHeaders['X-Forwarded-For'] )
Where request is an argument that comes to the API method.
Also how it looks with Codeless:
Hi Dima I’m not sure about what I’m doing here. I duplicated the API Service but then I wasn’t sure how to call it or If i needed to add some input header information.
- Create BL Service
- Add onClick logic on button in ui-builder
- Open browser terminal and open “console” tab in preview app
Hi Victor, I restructured codeless like you did and then ran it.
Looks like it returned the URL but not the IP address?