Hello, I want to setup Super Tokens Core on my mac...
# support-questions-legacy
g
Hello, I want to setup Super Tokens Core on my machine for R&D purposes. I follow the step in the docs to setup without docker but I ended up with an error "ERR_CONNECTION_REFUSED" on Chrome, I setup mysql and I have 2 lines in the key_value table. But when I try with Docker I get the Hello from the /hello route. Any ideas ? I tested with WSL2
r
Hey!
What url are you trying to call from the browser?
g
localhost:3000/hello I change the default port to the port 3000. I fixed the issue by setting the host to 0.0.0.0 in the config file
r
hmm. By default it listens on localhost:3567, since you changed the port to 3000, it should have worked on localhost:3000
g
Yes but it didn’t work, even by settings the host to 127.0.0.1 in the config files, the only way tu make it work on localhost was to change the host to 0.0.0.0
r
hmm okay. We will investigate this issue. Thanks
Which OS are you using?
g
I’m on Windows 11 latest build with WSL2 with Ubuntu 22.04.1 on it
r
got it. Thanks
g
No problem 😉
r
So you ran this on windows or on ubuntu?
g
On Ubuntu
I run other dev workflow on it that use localhost and it works fine on Ubuntu
r
hmm. Im confused. On which OS does it not work?
g
My main OS is Windows 11, I use WSL2 with Ubuntu 22.04.1 as my development environment. Yesterday I try to host SuperTokens on the Ubuntu OS and access it on Windows. When I run SuperTokens on Ubuntu, the console output says « running on localhost:3000 » so I go to localhost:3000/hello on Windows and it doesn’t work. If I edit the configuration file and change the host value to 0.0.0.0 then retry to access the same url it works
r
ahh right. I think that happens cause localhost on ubuntu refers to the network allocated to ubuntu and not to windows. Setting it to 0.0.0.0 allows it to listen on all interfaces which then enables you to access it from windows
4 Views