Closed OguzhanUmutlu closed 1 year ago
import {Server} from "bedrock-protocol";
const server = new Server({
host: "0.0.0.0",
port: 19132,
version: "1.20.10"
});
await server.listen();
This worked.
This error is because the port you want to use, 19132, was not free when you tried to run the program. You can use the netstat
command to check what ports are in use.
I've tried multiple ports, it says this for all of them.
Error:
My code:
The line that throws the error: https://github.com/extremeheat/node-raknet-native/blob/master/src/RakServer.cpp#L148