MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] Can't use more than 5 console clients at once. #2146

Closed Lord420123 closed 2 years ago

Lord420123 commented 2 years ago

Prerequisites

Minecraft Version

1.18.2

Console Client Version

1.19

Expected Behavior

I'm expecting to be able to open all the 11 console clients that I want to open and expect to see them running smoothly.

Actual Behavior

I open all 11 clients and only 5 of them successfully connect, the rest just sit blank and will eventually just time out just to reconnect and have the same thing happen all over.

(When I put on debug messages, nothing came from it.)

Steps to Reproduce the bug

  1. Open more than 5 console clients at the same time.

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

Opening more than 5 instances of console clients(for me), makes the rest not work.

Device

Laptop

Operating System

Windows

Server Address (If applicable)

boxpvpv.minehut.gg

breadbyte commented 2 years ago

Can you please try this pre-release version of #2124 and see if it is fixed?

Lord420123 commented 2 years ago

I tried it, and it was all the same.

ORelio commented 2 years ago

Could be some anti-ddos protection server-side also.

Lord420123 commented 2 years ago

Is there a fix to it, or is it something with the server?

BruceChenQAQ commented 2 years ago

image image

Tried opening 20 clients to connect to the local offline mode server and they worked fine.

Lord420123 commented 2 years ago

So it is server-side I guess.

Quick question, can you open X amount of console clients by just clicking on a single 'MinecraftClient.exe'?

BruceChenQAQ commented 2 years ago

You can write a script to start multiple clients with different configurations, specifying the location of the ".ini" configuration file to be loaded via arguments.

milutinke commented 2 years ago

Try using a proxy, that will solve your issue, since the most likely issue is the server, probably an anti-ddos or anti-bot protection. There are cheap proxies, even free ones you can use. Here you can find more on proxies in MCC: https://mccteam.github.io/docs/guide/configuration.html#proxy

milutinke commented 2 years ago

Try these out, haven't tested them: https://freeproxyupdate.com/

Lord420123 commented 2 years ago

I tried using a few, but I don't think I 100% know what I'm doing.

What it looks like in the config: https://prnt.sc/5fbvDnmlAtwD

What it looks like launching the client(with debug msg on): https://prnt.sc/tuBhzQmhhFtx

Lord420123 commented 2 years ago

I've tried many different things, but I just cannot figure out how to set it up correctly, it always ends in a "Socket Exception. System.Net.Socket.Exception tried to connect to an unreachable host".

BruceChenQAQ commented 2 years ago

Throwing this exception indicates a problem connecting to the server through a proxy, which could be that the proxy is not available or the server has blocked the IP segment.

I set up a SOCKS4 proxy locally, and I was able to connect to the server through this proxy using MCC, you can check if the proxy is available first.

Lord420123 commented 2 years ago

Thanks a lot for telling me. What I don't understand is how you set up a proxy locally. Do you have to go into the settings of your internet connection, or how is it? I'm a little confused about that.

BruceChenQAQ commented 2 years ago

You need to set up a proxy on a VPS or buy one to bypass the server's restrictions on simultaneous connections. Creating a proxy locally does not change the IP you connect to the server.

Proxy server - Wikipedia

milutinke commented 2 years ago
enabled=login
type=SOCKS4
server=213.7.196.26:4153
username=
password=     

This one works for me. Check out the link I've sent, it says which protocol you need to write in type= and the ip and port in server=.

Lord420123 commented 2 years ago

It didn't work for me, but where did you find it?

Lord420123 commented 2 years ago

I bought a month of privateinternetaccess and enabled the vpn, and added it to the proxy. I still get the same error, but now it comes up much faster than it did previously. I just don't know how to do this, honestly.

Lord420123 commented 2 years ago

With all of the above in mind, I'm a big noobie when it comes to techie things, so I would really appreciate it if someone had some kind of follow-along tutorial to set up a proxy and whatnot. I've been doing some digging myself for a few hours and I just can't seem to get things going. Thanks a lot for helping in the first place.

milutinke commented 2 years ago

It didn't work for me, but where did you find it?

https://freeproxyupdate.com/

With all of the above in mind, I'm a big noobie when it comes to techie things, so I would really appreciate it if someone had some kind of follow-along tutorial to set up a proxy and whatnot. I've been doing some digging myself for a few hours and I just can't seem to get things going. Thanks a lot for helping in the first place.

https://www.youtube.com/watch?v=5cPIukqXe5w https://www.youtube.com/watch?v=c7YF23yvot8 https://mccteam.github.io/docs/guide/configuration.html#proxy

Lord420123 commented 2 years ago

It didn't work for me, but where did you find it?

https://freeproxyupdate.com/

With all of the above in mind, I'm a big noobie when it comes to techie things, so I would really appreciate it if someone had some kind of follow-along tutorial to set up a proxy and whatnot. I've been doing some digging myself for a few hours and I just can't seem to get things going. Thanks a lot for helping in the first place.

https://www.youtube.com/watch?v=5cPIukqXe5w https://www.youtube.com/watch?v=c7YF23yvot8 https://mccteam.github.io/docs/guide/configuration.html#proxy

Highly informative with a lot of useful information, thanks for showing me.

However, I've no idea at all how you set up a proxy in itself. Do you use a program from the web? Or do you configure some things in your settings, the videos where they allegedly explain those kinds of things, fry my brain and I don't get a single piece of information from it. If you or someone else have something on that, it'd be fantastic. Thanks for the help.

milutinke commented 2 years ago

It didn't work for me, but where did you find it?

https://freeproxyupdate.com/

With all of the above in mind, I'm a big noobie when it comes to techie things, so I would really appreciate it if someone had some kind of follow-along tutorial to set up a proxy and whatnot. I've been doing some digging myself for a few hours and I just can't seem to get things going. Thanks a lot for helping in the first place.

https://www.youtube.com/watch?v=5cPIukqXe5w https://www.youtube.com/watch?v=c7YF23yvot8 https://mccteam.github.io/docs/guide/configuration.html#proxy

Highly informative with a lot of useful information, thanks for showing me.

However, I've no idea at all how you set up a proxy in itself. Do you use a program from the web? Or do you configure some things in your settings, the videos where they allegedly explain those kinds of things, fry my brain and I don't get a single piece of information from it. If you or someone else have something on that, it'd be fantastic. Thanks for the help.

You don't need to make your own proxy, just use free ones. The info you need is an ip address, a port, the type of proxy and username and password if you need to login to it. Then you fill that info in MinecraftClient.ini in the [Proxy] section, or you can pass it using command line arguments, eg. MinecraftClient.exe --proxy.enabled=login --proxy.server=ip here:port here --proxy.type=type here

Example: MinecraftClient.exe --proxy.enabled=login --proxy.server=213.7.196.26:4153 --proxy.type=SOCK4S

Lord420123 commented 2 years ago

Ok, so I never did anything wrong, all the proxies i tried basically just didn't work -.-

well, that's progress I guess lol. Thanks.

Lord420123 commented 2 years ago

https://prnt.sc/p1UXHJaiVJ1S

But seriously, what is it cause of this error? Can it just be labelled as "This proxy doesn't work"?

Lord420123 commented 2 years ago

One error message that I have now realized never changes, no matter the proxy I try, is "Unhandled exception. System.Net.Socket.SocketException (10065) A socket-exception was attempted on an unreachable host".

Lord420123 commented 2 years ago

Since I feel as though this post has come a bit further and is now in a different problem, I've decided to open #2152, so it can be kept a little bit more organized. Thanks for all your help with this one, it means a lot.