-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
Unable to connect bot to server due to proxy settings hindering the connection process (Bug) #3437
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please verify that you can connect to the server with a vanilla client first |
I can always connect to the server with my mc client without any problems but idk why the bots can't |
Same issue as this one here. ive done testing on this and it happens when server is running 1.19 or higher and bot tries to join with anything above 1.18. Clients can join just fine but not bots. Bots on 1.18 can join the server since the server has via version on it and work fine just cant go below the world limit of 1.18. |
I've tried every version still getting the same error
|
Same issue and same error here, When I use socks proxies for my mineflayer bot I keep getting the error above but it works fine when I don't configure proxies for my bot. |
If the connection is refused this is an issue with the server or your network connection. Try on a different server and see if you can reproduce. There are other comments on this issue that are not related to OP problem. |
If it's a proxy issue then we can't fix it, we can only fix problems directly caused by the code |
Yeah I just realized it works without setting proxy but the issue is there's a minecraft server that doesn't let you join your bots with your same IP so somehow you gotta bypass it using proxies. |
Are you setting the proxy right within the mineflayer script or are you using something like proxychains4? |
It was working fine for me a few weeks or months ago, but since I updated my version of mineflayer to the latest version, it keeps sending me this error, and I've been ensured several times that there isn't any problem with proxies. |
I'm currently using socks5-client |
This is the code example of how I configure the proxies const mineflayer = require('mineflayer')
const Socks = require("socks5-client");
const bot = mineflayer.createBot({
stream: Socks.createConnection({
host: "192.168.1.1",
port: "25565",
socksHost: "1.0.0.1",
socksPort: 4145
}),
username: 'IamBot',
password: '',
version: 1.20,
}) |
Your current code
I get the error code below when I try to execute my main node
Would be appreciated for your solution
The text was updated successfully, but these errors were encountered: