Back

node.js appwrite ip retrieve

  • 0
  • Web
alpha#trinity1
14 Jun, 2023, 13:56

Hi everyone, requesting for alternative function of const response = await axios.get(http://ip-api.com/json/${ipAddress}); that can work in node.js to retrieve user ip address from appwrite server..

TL;DR
Title: Retrieve IP Address of User in Appwrite Server using Node.js User is seeking help to retrieve the IP address of a user in an Appwrite server using Node.js. They have a transcompiled file but no output when running it in Node.js. They are looking for an alternative function to retrieve the user IP address from the Appwrite server in Node.js. Solution: One possible solution is to run the desired function inside the Appwrite function to get the server IP. However, it seems that Appwrite does not provide the user IP in the backend.
Binyamin
14 Jun, 2023, 13:59

You want to get the user IP from browser?

Binyamin
14 Jun, 2023, 13:59

Can you elaborate?

alpha#trinity1
14 Jun, 2023, 14:01

I want to get ip address of the user in appwrite server using node.js platform

alpha#trinity1
14 Jun, 2023, 14:03

The user was created in appwrite server. so i want to get his ip adress when running my function on node.js

Binyamin
14 Jun, 2023, 14:16

If you'll run this function inside your Appwrite function then you'll always going to get you server IP I don't think Appwrite gives you the user IP in the backend.

alpha#trinity1
14 Jun, 2023, 14:39

many thanks

joeyouss
14 Jun, 2023, 14:45

Please mark this post as SOLVED or CLOSED if no further help is needed.

Drake
14 Jun, 2023, 18:28

where exactly is this nodejs server running? where does it fit into your architecture?

alpha#trinity1
29 Jun, 2023, 14:53

Hey, have that file which I have transcompiled to js. when I run index.js, I dont get any output, may you help please... I am running the file in nodejs

Drake
29 Jun, 2023, 14:58

This looks unrelated to your original message, right? 🧐

alpha#trinity1
29 Jun, 2023, 14:59

Yes sir, but still under the same work

Drake
29 Jun, 2023, 21:07

please create a separate post after searching <#1072905050399191082>

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more