Back

[SOLVED] Access Appwrite Cloud from local domain name?

  • 0
  • Web
  • Cloud
andrew
18 Sep, 2023, 19:35

Nothing

TL;DR
The user was trying to access Appwrite Cloud from a local domain name but was having issues. They tried using .local addresses and .localhost addresses but neither worked in Chrome or Firefox. After some tinkering, they discovered that it was a Windows issue and found a solution by adding both appwrite.korkortsportalen.local and korkortsportalen.local as platforms in the Appwrite console. Now everything is working fine.
andrew
18 Sep, 2023, 19:36

yeah saw that one but .local didnt work for me in firefox or chrome... .localhost resolves in both tho.. Really weird

Drake
18 Sep, 2023, 19:37

What do you mean localhost resolves?

andrew
18 Sep, 2023, 19:37

I can access my dev server with project.localhost:4321 but not project.local:4321

Drake
18 Sep, 2023, 19:38

What happens if you get rid of the host entry for project.localhost and try again?

andrew
18 Sep, 2023, 19:40

You mean with only these in my /ets/hosts?

Drake
18 Sep, 2023, 19:41

Sure and the browse to http://whatever.localhost:4321

andrew
18 Sep, 2023, 19:42

Nothing

andrew
18 Sep, 2023, 19:43

I can ping korkortsportalen.local

andrew
18 Sep, 2023, 19:43

But Chrome/Firefox arent reaching it

Drake
18 Sep, 2023, 19:44
andrew
18 Sep, 2023, 19:45

Ah i see. I thought you wanted me to try with .local. Yeah .localhost works even when not in /etc/hosts

Drake
18 Sep, 2023, 19:46

So I'm not sure if chrome does it or the operating system but localhost always points to the current machine regardless of etc hosts

andrew
18 Sep, 2023, 19:48

Yeah

Drake
18 Sep, 2023, 19:52

So now you're saying http://korkortsportalen.local:4321/ doesn't work? What's the network tab show?

andrew
18 Sep, 2023, 19:53

No.. Sorry for the confusion.. Dev server works fine, always has (korkortsportalen.localhost:4321). My issue is I want to access Appwrite Cloud with the hostname appwrite.korkortsportalen.localhost

andrew
18 Sep, 2023, 19:55

Tried setting a custom domain but its impossible to verify the domain haha

Drake
18 Sep, 2023, 19:55

Right so you can't use something that ends in localhost in the hosts file... But you're saying https//appwrite.korkortsportalen.local doesn't work?

Drake
18 Sep, 2023, 19:55

Of course it won't validate because it's not a valid domain

andrew
18 Sep, 2023, 19:56

Ah okay.. No, no .local addresses works (at least for me)

Drake
18 Sep, 2023, 20:01

Anything else you need?

andrew
18 Sep, 2023, 20:14

After a bit of tinkering i got .local addresses working on my machine. Seems like it was a Windows issue

andrew
18 Sep, 2023, 20:16

And now after adding both appwrite.korkortsportalen.local and korkortsportalen.local as platforms in the appwrite console everything seems to be working πŸ‘

Drake
18 Sep, 2023, 20:17

[SOLVED] Access Appwrite Cloud from local domain name?

andrew
18 Sep, 2023, 20:18

Thanks Steven for pointing me in the correct direction! 🍰

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