Working netplay server for https://github.com/EmulatorJS/emulatorJS
Instructions on how to set up with EmulatorJS are located here
Bugs may exist - open an issue if you find one
Supports:
Development instructions are located here
Configurating the server is located here
Building instructions are located here
License is located here
Go to the releases tab and download the latest release for windows and open the exe file.
The GUI version is recommended for most users.
You can also download the source code and run npm i
to install packages and then npm start
to start the server.
Go to the releases tab and download the latest release for linux and open the AppImage file (you may need to make it executable).
The AppImage version is recommended for most users.
You can also download the source code and run npm i
to install packages and then npm start
to start the server.
You can also use docker to run the server this is recomended for production use you can also follow these steps for a server.
Download the docker image:
docker pull ghcr.io/emulatorjs/emulatorjs-netplay/emulatorjs-netplay-server:latest
Run the docker image:
docker run -p 3000:3000 -e NETPLAY_PASSWORD=admin123 -e NETPLAY_PORT=3000 -e NETPLAY_DEV=false ghcr.io/emulatorjs/emulatorjs-netplay/emulatorjs-netplay-server:latest
To run the server with docker compose you can use this docker-compose.yml file:
version: "3.9"
services:
emulatorjs-netplay-server:
image: ghcr.io/emulatorjs/emulatorjs-netplay/emulatorjs-netplay-server:latest
ports:
- 3000:3000
environment:
- NETPLAY_PASSWORD=admin123
- NETPLAY_PORT=3000
- NETPLAY_DEV=false
Then run:
docker-compose up
Clone the repo:
git clone https://github.com/EmulatorJS/EmulatorJS-Netplay.git
Install packages:
npm i
Start the server:
npm start
You can also use the flags -p
for port and -a
for password:
npm start -- -p 8080 -a admin
You can add the flag -d
to run the server in dev mode.
npm start -- -p 3000 -a admindev -d
You can also run the dev version with:
npm run dev
You can run the GUI version with:
npm run app
You can run the help with the flag -h
Notes:
- Changing the password is recommended.
Config priority:
- Flags
- Environment variables
- Config file
Editing the password:
The username is admin
and the defalt password is admin123
you can change the password in the config.json password
value.
{
"password" : "admin123"
}
You can also change the password by setting environment variable NETPLAY_PASSWORD
to the password you want to use.
Editing the port:
The default port is 3000
you can change the port in the config.json port
value.
{
"port" : 3000
}
You can also change the port by setting environment variable NETPLAY_PORT
to the port you want to use.
Running in dev mode:
You can run the server in dev mode by setting the dev
value to true
in the config.json file.
{
"dev" : true
}
You can also run the server in dev mode by setting the environment variable NETPLAY_DEV
to true
.
You can build:
- Windows:
npm run build-win
- Linux:
npm run build-linux
- Docker:
npm run build-docker
Licenced under the Apache License 2.0
Read the whole license here