#Appwrite Local Instance

1 messages · Page 1 of 1 (latest)

harsh linden
#

When I want to retrieve the country of each user, Appwrite's Local instance always returns an object with its data as Country "Poland".

rustic helm
glad knoll
#

What you mean local instance
You're accessing it through http://localhost?

glad knoll
#

But what you mean by local?

#

Do you use cloudflare for your DNS?

rustic helm
harsh linden
glad knoll
harsh linden
#

This Local instance

glad knoll
#
  • Is the instance endpoint in a remote server or in your computer?
  • Are users come from all around, as it live, or you in testing period?
glad knoll
#

Got you,
It was the locale object, my miss understanding.

harsh linden
glad knoll
#

So how did you check what other users gets?

#

Only you?

#

When you go to this website

#

What country you're getting?

harsh linden
harsh linden
glad knoll
harsh linden
glad knoll
#

Also in the Appwrite cloud one?

rustic helm
glad knoll
#

Maybe it's how hostinger proxies the requests to Appwrite

harsh linden
glad knoll
#

Where are you hosting your Appwrite instance?

#

Do you have any other Apps on that server?

#

What version of Appwrite you're using?

harsh linden
harsh linden
harsh linden
glad knoll
#

So maybe they have some an auto reverse-proxy

#

That route your requests from poland

harsh linden
harsh linden
glad knoll
glad knoll
#

And sure
You also have Appwrite Cloud

harsh linden
#

When a use only ip address all works {"ip":"154.72.171.250","countryCode":"CM","country":"Cameroon","continentCode":"AF","continent":"Africa","eu":false,"currency":""}

glad knoll
#

Yes, makes sense

rustic helm
glad knoll
#

Probably their DNS somehow reversing the proxy

rustic helm
#

cloudflare does this

glad knoll
#

What you can do is to manage the DNS by your own and just point some A record to your server IP

harsh linden
glad knoll
#

Where is your domain hosted?

glad knoll
#

In that solution you're using CNAME because you're pointing it to an existing domain name

#

In your case you'll need to add A record as you're pointing to an IP address

harsh linden
glad knoll
#

Also the domain?

harsh linden
glad knoll
#

And you've added A record that points to your server IP?

harsh linden
glad knoll
#

Okay

#

But how is your domain was pointing to your server till now?

harsh linden
glad knoll
#

I went through Hostinger documentation and haven't find anything about proxy
I'll suggest you'll contact them