ClassiCube icon indicating copy to clipboard operation
ClassiCube copied to clipboard

Add support for connecting to local servers with a ClassiCube account

Open Hedwig7s opened this issue 2 years ago • 12 comments

Would just be preferable to disabling name verification for LAN players

Hedwig7s avatar Jun 07 '22 21:06 Hedwig7s

I don't know how would it be possible to find server and provide a valid mpass.

forkiesassds avatar Jun 21 '22 11:06 forkiesassds

You can do this with the webclient (http://www.classicube.net/server/play/[server_hash]/?ip=[server_lan_ip])

UnknownShadow200 avatar Jun 21 '22 11:06 UnknownShadow200

You can do this with the webclient (http://www.classicube.net/server/play/[server_hash]/?ip=[server_lan_ip])

Alot of people use the downloadable client though

Hedwig7s avatar Jun 22 '22 20:06 Hedwig7s

Is joining through the server list not an option?

I'm a bit reluctant to add more to the launcher UI for just this case, although command line option might be possible

UnknownShadow200 avatar Jun 23 '22 02:06 UnknownShadow200

Is joining through the server list not an option?

I'm a bit reluctant to add more to the launcher UI for just this case, although command line option might be possible

No it isn't It tries to connect via global IP instead of local which never turns out well

Hedwig7s avatar Jun 23 '22 16:06 Hedwig7s

I'm not sure how widespread issues with connecting to own external IP are - although both I and some others are able to connect fine, others have also said they are unable to connect


If you're signed in to classicube.net, you can copy Direct URL for a server and paste it into any of the input boxes in the Direct Connect menu, then replace server IP address with LAN IP (the launcher detects attempts to paste mc:// urls, and will automatically fill in all three fields in that case)

UnknownShadow200 avatar Jun 23 '22 23:06 UnknownShadow200

A lot of router/firewall boxes don't do hairpin NAT well, if at all; especially the cheap ones.

To configure the Linux firewall (as used in various cheap boxen) involves adding a second rule to explicitly preroute and NAT hairpin traffic. Obviously this is easy for a web-dev (writing the GUI) in a hurry to overlook.

However, the lack of hairpin routing cannot be worked around purely on the client; the server would have to register it's internal network address with the heartbeat server so that the client can try this "sometimes".

Perhaps, just a method of copying the server list entry to the "direct connection". Say ^C on the server list copies an "mc://" style URL and ^V on the "Direct connection" pastes it there.

rdebath avatar Sep 06 '22 09:09 rdebath

I just want a box on the server list screen which allows inputting a direct ip Or allowing the use of an account on the Direct Connect menu

Also your idea won't work as unless you use the ?ip=[server_lan_ip] thing it will still try to use global IP

Hedwig7s avatar Sep 06 '22 10:09 Hedwig7s

@Hedwig7s Having both IPs available through the API would work it's been done with other "nat-punching" protocols. But it's complex.

What I meant by the last two lines was to build on the existing thing that works in the "Direct Connect" screen. So if you try to copy a line on the server list with ^C it copies a url like this: mc://51.89.42.211:39999/Hedwig7s/99754106633f94d350db34d548d6091a which can be pasted into the direct connect where you can fix it. Also adding a name on the end like this would be nice: mc://51.89.42.211:39999/Hedwig7s/99754106633f94d350db34d548d6091a?name=Lenni's+Classic+Anarchy

That way there's no visible change in the UI, but people who need it are likely to find it anyway.

rdebath avatar Sep 06 '22 11:09 rdebath

Gonna close this since it seems this has been implemented

Hedwig7s avatar Oct 01 '23 07:10 Hedwig7s

Copying from the server list hasn't been implemented yet

UnknownShadow200 avatar Oct 01 '23 11:10 UnknownShadow200

The issue was connecting through the server list but sure

Hedwig7s avatar Oct 02 '23 06:10 Hedwig7s