-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up a local version for testing #4
Comments
It's not clear to me what you're trying to do. On the same machine for testing? It's possible to run a local server. Unfortunately how you set it up depends your needs. It's networking so there's literally an infinite number of setups I guess the first thing to do is clone this repo and run it
It should print something like
Then in another terminal on the same machine try to talk to it with
when I try it I get
do you? Also your game is written in Unity or what? |
Yes, that's exactly what I'm trying to do, run the website on the same machine as the game. So I can test it before I get access to the actual server. |
So, in the game, in whatever object you put the
Then run the game. Then in a browser ON THE SAME MACHINE go to
If you want to connect from a phone you need to stop the server and run it like this (mac/linux)
or Windows
Then you need to look up the ip address of your computer (mine is 192.168.1.94). On my phone I type As for running it with your own domain name you'll need to register a domain. If you use heroku someone has already done it here |
Amazing, it works like a charm! Hopefully setting up the server later is going to be without any issues. Thanks a lot, I really appreciate it :) Edit: Only one small thing, I can't get the phone to actually connect to the game but the website runs fine on it. |
HI,
I would like to set up a local version of the website using python http.server or some other option. However, with node.js running and everything else in place I'm getting errors
I was wondering what could be the issue, where should I point the server to or if it's even possible to run a local version of the website.
I want a local version just to test it and I don't have acess to the server it is going to run on in the future yet.
Thanks.
The text was updated successfully, but these errors were encountered: