Setup - razrrr/psychic-winner GitHub Wiki
Setup
- Install node.js (https://nodejs.org/en/download/)
- In the terminal…
-
npm install express
-
npm install socket.io
Test
- In the terminal…
-
cd (location of .js file)
-
node (file.js) // this starts the node.js server application
- In your browser, enter the URL: http://127.0.0.1:8081/client.html
Setting up Multiplayer
- Log in to router
- Find Port Forwarding Options
- Create a new Port Forwarding Rule
- HOST DEVICE, HTTP (Web - Port 80), Forwarding to Port 8081 (user specified)
- Give out [Router IP Address]:80/client.html to other users
- (Router IP Address found on main page)