Skip to content
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

Can't connect to DayZ server #48

Open
inkihh opened this issue Apr 24, 2023 · 1 comment
Open

Can't connect to DayZ server #48

inkihh opened this issue Apr 24, 2023 · 1 comment

Comments

@inkihh
Copy link

inkihh commented Apr 24, 2023

Hey there,

I'm trying to connect to a local test DayZ server, but it just doesn't work. I tried every combination of tcp true/false and challenge true/false. I know that rcon works per se, because I can connect with a DarT client.

This is my script, any advice?

const rcon = require('rcon');

const options = {
  tcp: true,
  challenge: false
};

const conn = new rcon('127.0.0.1', 2305, 'testtest', options);

conn.on('auth', function() {
  console.log("Authenticated");
}).on('response', function(str) {
  console.log("Response: " + str);
}).on('server', function(str) {
  console.log("server: " + str);
}).on('error', function(err) {
  console.log("Error: " + err);
}).on('end', function() {
  console.log("Connection closed");
  process.exit();
});

conn.connect();

@Thomas-is-dev
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants