Closed xenon154 closed 6 months ago
unless you are checking out the game directly on your raspberry pi, you would have to change localhost to your pi's local network IP (are usually 192.X.X.X
, which are private IPs) and then use that to connect to the aps++ instance.
let me know how that works
I know, I was accessing it from a Cloudflare tunnel. I also tried accessing it from its IP on my network, same issue.
if you put localhost in your browser, it expects a webserver to be on the same machine that is visiting localhost btw, what are the errors in devtools console?
localhost:23601, it
Set host url in server/config.js to localhost:26301
localhost:23601, it
Set host url in server/config.js to localhost:26301
that only works if the server is running on the same machine as the computer that synt4ctic is trying to connect to it with
if you put localhost in your browser, it expects a webserver to be on the same machine that is visiting localhost btw, what are the errors in devtools console?
I understand what localhost means, I was accessing it from its private IP.
There was a websocket error:
socketInit.js:754 WebSocket connection to 'wss://localhost:26301/' failed:
when you try to join the server, does the server's console log anything?
Not any errors on the server's console itself, but there was the websocket error in the developer console
There was a websocket error:
socketInit.js:754 WebSocket connection to 'wss://localhost:26301/' failed:
what is the host variable in the config file?
localhost:23601
change that to the domain that you've been putting in the url bar the entire time and then restart the server
Thank you, that worked
I have an instance running on my Raspberry Pi with the latest version of Node.js and NPM. When I go to http://localhost:23601, it gets stuck on "Connecting..." and when I click play, it displays the error: "Disconnected: Socket error". I installed the ws package with
npm install ws
so I do not think that's the issue.