windows is my local machine in windows I have a we...
# off-topic
b
windows is my local machine in windows I have a web application. running : localhost:8080 I have a vmware application in my windows. There I have a ubuntu OS. On that Ubuntu os I am running supabase docker container. Is is not WSL2 or windows on docker.
m
ok so let's keep it here so we don't flood the main chat
b
Appreciate your initiative.
Please let me know if I should put any information.
m
So you have windows on your computer on which you are running an ubuntu vm which hosts the docker container, right?
and you have a port forward from the vm to your windows machine?
b
Yes, exactly.
I have installed openssh
and can connect via ip. Supabase is running fine.
m
so you connect to supabase via http://your-ip-here or via http://localhost ?
b
1st one.
ip+port.
web application is from localhost.
m
okay
hmm. you could try editing c:\Windows\System32\Drivers\etc\hosts
b
why this is required?
m
well, if it is the same issue i had, or similar
it is because it automatically redirects to http://kong:3000 instead
from what i can tell
and what I think is the issue in your case
is that you access it from a different address than it expects you too
b
Is it going to resolve the issue or this is we are just bypassing now
m
this would be a workaround
i am unsure if the issue is within our "power" to fix right now
I managed to get it working and didn't look much further into it
b
Let's say I have hosted my website into another server and supabase into another what will happen then?
please guide me.
m
You would have to edit the local dns of the server that hosts your web application
i think
again, this is just a guess, i am not 100% sure
but i think it should work
b
Right now I am going to uninstall everything and will start from beginning.
m
wait no :))
b
I have changed a lot. I have seen their code and change accordingly in my vm and tried but no luck.
May be there is lot going on inside.
m
before doing that, try to add the following line to `c:\Windows\System32\Drivers\etc\hosts`:
Copy code
127.0.0.1  kong
and see if it fixes it
b
ok will try after installing.
m
okay
i am not sure if it's a bug on their end or a misconfiguration on out end though
b
Thanks mate. Thanks a lot.
m
no problem
let me know if that fixes it or not. i am curious too