From e279e14fe84afdf60fda9d8d3727edc4bccfe694 Mon Sep 17 00:00:00 2001 From: MartinP <77325495+Mape6@users.noreply.github.com> Date: Tue, 3 May 2022 06:52:59 +0200 Subject: [PATCH] Update Hosting-a-Multiplayer-server.md (#6676) * Update Hosting-a-Multiplayer-server.md Added a section for explaining that Android does not like unencrypted traffic to a self-hosted server and that you need to setup a reverse proxy to do that. * Added hint for MultiplayerFiles folder --- docs/Other/Hosting-a-Multiplayer-server.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/Other/Hosting-a-Multiplayer-server.md b/docs/Other/Hosting-a-Multiplayer-server.md index da1dd9ac2f..b4b50105d1 100644 --- a/docs/Other/Hosting-a-Multiplayer-server.md +++ b/docs/Other/Hosting-a-Multiplayer-server.md @@ -6,7 +6,7 @@ Therefore, you can now host your own Unciv server, when not on Android. To do so, you must have a JDK installed. -From the directory where the Unciv.jar file is located, open a terminal and run the following line: +From the directory where the Unciv.jar file is located, create a folder named "MultiplayerFiles", open a terminal and run the following line: `java -cp Unciv.jar com.unciv.app.desktop.UncivServer` Don't forget to use 'cd' to switch to the correct dictionary. Here's an example in Windows. @@ -15,6 +15,7 @@ Don't forget to use 'cd' to switch to the correct dictionary. Here's an example D: cd Games cd unciv +mkdir MultiplayerFiles java -cp Unciv.jar com.unciv.app.desktop.UncivServer ``` @@ -30,4 +31,6 @@ For other devices, you'll need an external IP, which is out of scope for this do On the other device, do the same - enter the URL, click 'check connection' from the new device, and if you got the same result - congratulations, you're both connected to the same server and can start a multiplayer game on the server! +Android has some restrictions and does not allow unencrypted HTTP traffic from the Unciv app to a server. So you need to have a reverse proxy that sits between your (Android) client(s) and the Unciv server. The reverse proxy then needs to have a valid certificate and handles the TLS sessions for your Unciv server. + Please note that devices NOT connected to the same server will NOT be able to participate in multiplayer games together!