How do I make the bot connect through a proxy and not my IP (IN PYTHON, NOT JS)? #2283
Unanswered
MooshiMochi
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I'd suggest you to just use Javascript. |
Beta Was this translation helpful? Give feedback.
1 reply
-
#2277 seems to be a duplicate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Versions
Detailed description of a problem
A clear and concise description of what the problem is, with as much context as possible.
I want to make the bot log in through a proxy in python using the mineflayer API however, when the bot logs in, it uses my IP address rather than the proxy IP. When I tried the js code, it worked like a charm, but it doesn't seem to work in python.
What are you building? What problem are you trying to solve?
I am building a bot that is able to log into my server through multiple proxies (at my choosing)
What did you try yet?
I have tried to re-write the code exactly as it looks like in javascript in python:
Did you try any method from the API?
n/a
Did you try any example? Any error from those?
I tried the javascript example inside a javascript file --> No errors, connects through the proxy as intended.
I tried writing the code in python, --> Bot was able to log in / listen to events, etc however it logged in with my IP instead of the proxy IP
I would have tried an example from the python examples section in the git, but there are no examples that tell you how to connect the bot through a proxy.
Your current code
Expected behavior
A clear and concise description of what you expected to happen.
When the bot logs in, I expect it to show on the server console that the bot has logged in with the proxy IP
Additional context
Add any other context about the problem here.
It seems like the script completely ignores the part where i create a socks connection.
Beta Was this translation helpful? Give feedback.
All reactions