kolbytn / mindcraft

MIT License
1.79k stars 223 forks source link

Error: connect ECONNREFUSED ::1:55918 #147

Open Wowerr123 opened 2 months ago

Wowerr123 commented 2 months ago

I keep running into this error:

Error: connect ECONNREFUSED ::1:55918
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1549:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '::1',
  port: 55918
}
Agent process exited with code 0 and signal null

I have a LAN started on the same network and whenever i try and do node main.js i run into this error. Here is my settings.js file:

export default 
{
    "minecraft_version": "1.20.4", // supports up to 1.20.4
    "host": "localhost", // or "localhost", "your.ip.address.here"
    "port": 55918,
    "auth": "offline", // or "microsoft"

    "profiles": [
        "./andy.json",
        //"./profiles/dolphin.json", // Groq support

        // add more profiles here, check ./profiles/ for more
        // more than 1 profile will require you to /msg each bot indivually
    ],
    "load_memory": false, // load memory from previous session
    "init_message": "Say hello world and your name", // sends to all on spawn
    "allow_insecure_coding": true, // enable at own risk
    "code_timeout_mins": 10, // -1 for no timeout
}

i have tried changing the port and even just using my IP instead of stating 'localhost' None of those fixed the issue.

Afkmcrealspro commented 2 months ago

open ollama

Wowerr123 commented 2 months ago

The same error occurs with ollama too.

merll002 commented 2 months ago

Is your minecraft server running on port 55918?

Afkmcrealspro commented 2 months ago

The server is not open or the IP and port are entered incorrectly.