UchuServer / Uchu

LEGO Universe server written in C#
GNU Affero General Public License v3.0
85 stars 20 forks source link

[Suggestion] Better explain how to set up the server for multiple people to play #312

Open MajickTek opened 2 years ago

MajickTek commented 2 years ago

Both me and my friend tried setting up the server with the auth/character ports forwarded and were unable to join each other.

We even tried vpns such as Hamachi.

Someone on the discord told me i needed to set up a host name and pfx certificate so I did and it made zero difference

TecCheck commented 2 years ago

Yeah, the problem is (at the moment) that you need a certificate from an official CA (a company that signs certificates). But they only sign certificates for domains on the Internet and so if your device is only in a local LAN this won't work.

We're working on a solution for this problem but It might take just a little bit of time

MajickTek commented 2 years ago

I assumed if I bought a domain with SSL from Namecheap it would work but it seems like it won't so it's unclear to me what this "official CA" stuff is about

TecCheck commented 2 years ago

I think that should work, but I'm not really an expert on SSL/TLS and certs. Do you know who signed this certificate?

MajickTek commented 2 years ago

It doesn't i bought the SSL through namecheap and created the cert/pfx using the openssl tool.

maybe theres more to it than i think

EDIT: also the domain just has an "A record" pointing to my IP right now

TecCheck commented 2 years ago

You can use Let's Encrypt if you have a domain: https://letsencrypt.org/

enteryournamehere commented 2 years ago

It doesn't i bought the SSL through namecheap and created the cert/pfx using the openssl tool.

That should be fine. Could you copy the client logs here (or on Discord)? (they should appear if you launch it from the terminal)

MajickTek commented 2 years ago

Update: Still no luck also there are no logs to post, no errors or anything just the standard boot messages

Jettford commented 2 years ago

The Namecheap SSL cert will be signed by a valid certificate authority there is no question on whether it is a valid SSL cert. You need to be sure that the server is loading the SSL certificate and using it for its connections.

Please check if there is a log that starts with PRIVATE KEY:

Jettford commented 2 years ago

It should be literally the first log the server outputs

ArkShocer commented 2 years ago

FYI - The user was able to solve his problems with the following actions:

1. Open all required ports 2. Generate certificate without password 3. Make all dlls in the lib folder executable (chmod a+x)

MajickTek commented 2 years ago

Although technically I solved this issue, in the end I was still likely missing something: The server can't seem to keep the client authentication when loading the rocket world after creating a new character.

With DLU releasing in about a week I don't expect this to be fixed right away but it would still be neat

Jettford commented 2 years ago

Although technically I solved this issue, in the end I was still likely missing something: The server can't seem to keep the client authentication when loading the rocket world after creating a new character.

With DLU releasing in about a week I don't expect this to be fixed right away but it would still be neat

This is almost certainly a configuration issue not a server issue.

MajickTek commented 2 years ago

maybe a config issue with my webserver but not with uchu itself. i copied the config files to my local pc and i can connect to it fine from localhost.

it's just on the webserver that it wont work