-
To preface, I have literally zero experience with Node or web stuff. I'm trying to run the following code on MacOS 1.15: const mineflayer = require('mineflayer')
const bot = mineflayer.createBot({
host: 'localhost',
port: '25565',
username: '[email protected]',
hideErrors: false
}) But I get the following error:
Should I be configuring localhost to listen on 25565 somehow? |
Beta Was this translation helpful? Give feedback.
Answered by
Karang
Jul 31, 2021
Replies: 1 comment 2 replies
-
25565 is the default port of minecraft servers, if you changed it you need to set it to whatever port your server use. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
a2435191
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
25565 is the default port of minecraft servers, if you changed it you need to set it to whatever port your server use.
Make sure you have a server running locally and that you can connect to it properly using your client.