How to set up a (public) XMage server
by BetaSteward
Moderators: TheElk801, BetaSteward, LevelX, North, noxx, JayDi, jeffwadsworth, CCGHQ Admins
Re: How to set up a (public) XMage server
by BabaRey » 02 Feb 2020, 05:12
Now it works, thank you very muchJayDi wrote:Try run simple command without startup file:
- Code: Select all
java -Xms256M -Xmx512M -XX:MaxPermSize=256m -Djava.security.policy=./config/security.policy -Dlog4j.configuration=file:./config/log4j.properties -jar ./lib/mage-server-1.4.42.jar
What are those warnings?
- BabaRey
- Posts: 9
- Joined: 14 Mar 2018, 03:10
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to set up a (public) XMage server
by JayDi » 02 Feb 2020, 09:26
You must use java/openjdk 8, not 11 (xmage support only 8 version -- both server and clients must use same versions). You can make openjdk 1.8 as default java or run it from 1.8's bin folder as command line (replce java word as jdk1.8_bin/java path).
-
JayDi - Posts: 306
- Joined: 23 Nov 2017, 15:41
- Location: Russia
- Has thanked: 0 time
- Been thanked: 44 times
Re: How to set up a (public) XMage server
by crisishell » 30 Mar 2020, 16:51
Hi, i've set up a linux server with xmage server on it with a domain name, but i still can access it via xmage client.
help plz.
help plz.
- crisishell
- Posts: 1
- Joined: 30 Mar 2020, 16:48
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to set up a (public) XMage server
by ShadowKindjal » 09 Apr 2020, 19:44
Can somehow help me out? I can't seem to find the server directory files that I am supposed to download nor the FTP site gram them from. I just need to be pointed in the right direction. I downloaded the Mage.Server directory from GitHub but it seems to be missing a bunch of files required to start the server.
- ShadowKindjal
- Posts: 1
- Joined: 09 Apr 2020, 19:39
- Has thanked: 0 time
- Been thanked: 0 time
How to set up a XMage server on Linux Ubunuto 18.4 terminal
by Thyphu5 » 27 Apr 2020, 06:35
Hey everyone,
after finaly getting the Xmage-Server part up and running on a Linux-Server (who is messing with the encoding of the files?! serious...)
and having the listening on port 17171 ready without any errors, even seeing the listening in netstat on port 17171 and 17172 it seems everything on server side is working correct.
BUT
when trying to connect from a Windows Client, i cant connect. here the Client Log, due to not beeing firm with java, is totaly no help to me. Everything i found so far helped me to get the Server running without errors so i guess it is not something in my /etc/hosts, the xmage/config/config.xml or my ufw (yes ports are allowed, even all ports between Server-Client were open for testing purposes)....
what can it be, that the Client ist getting no connection?
after finaly getting the Xmage-Server part up and running on a Linux-Server (who is messing with the encoding of the files?! serious...)
and having the listening on port 17171 ready without any errors, even seeing the listening in netstat on port 17171 and 17172 it seems everything on server side is working correct.
BUT
when trying to connect from a Windows Client, i cant connect. here the Client Log, due to not beeing firm with java, is totaly no help to me. Everything i found so far helped me to get the Server running without errors so i guess it is not something in my /etc/hosts, the xmage/config/config.xml or my ufw (yes ports are allowed, even all ports between Server-Client were open for testing purposes)....
what can it be, that the Client ist getting no connection?
mageclient.log
- last Logfile from windows client
- (5.89 KiB) Downloaded 69 times
- Thyphu5
- Posts: 1
- Joined: 27 Apr 2020, 06:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to set up a (public) XMage server
by johnnysmithy667 » 16 Jan 2021, 19:32
Totally unrelated to the issues above, but I think this could be of help for some of you:
I really struggled setting up a public server. I thought it wouldn't be that hard, just put the files on a linux box, edit the config and start that thing up, hu?
Thing is, the server software was unable to obtain the configured port on my system, so it was impossible to connect to the server. This showed in the server log, where was explicitly written, that the port could not be taken (I can't reproduce the error atm for the correct message, sorry for this). Nothing I tried helped so far.
The solution for me was, to use a rDNS address, so instead of, for example using 123.231.12.3 for serverAddress in the config.xml I used hostnameofmachine.domainofvendor.tld. That made it suddenly work. Instead, you may also use for example the service nip.io to get this hostname-address (don't know how to call this).
I hope this helps some of you setting up servers for your friends/regular playgroups, so we can take off load from the few default servers preconfigured in xmage
I really struggled setting up a public server. I thought it wouldn't be that hard, just put the files on a linux box, edit the config and start that thing up, hu?
Thing is, the server software was unable to obtain the configured port on my system, so it was impossible to connect to the server. This showed in the server log, where was explicitly written, that the port could not be taken (I can't reproduce the error atm for the correct message, sorry for this). Nothing I tried helped so far.
The solution for me was, to use a rDNS address, so instead of, for example using 123.231.12.3 for serverAddress in the config.xml I used hostnameofmachine.domainofvendor.tld. That made it suddenly work. Instead, you may also use for example the service nip.io to get this hostname-address (don't know how to call this).
I hope this helps some of you setting up servers for your friends/regular playgroups, so we can take off load from the few default servers preconfigured in xmage

- johnnysmithy667
- Posts: 3
- Joined: 16 Jan 2021, 19:12
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to set up a (public) XMage server
by johnnysmithy667 » 16 Jan 2021, 19:37
Easiest way: start launcher, and click "start server". This will create the directory xmage/mage-server next to the XMageLauncher-0.3.8.jar. You can edit the config.xml in this directory and move the whole thing to a remote box, or use it locally, even without launcher (startServer.sh etc....)ShadowKindjal wrote:Can somehow help me out? I can't seem to find the server directory files that I am supposed to download nor the FTP site gram them from. I just need to be pointed in the right direction. I downloaded the Mage.Server directory from GitHub but it seems to be missing a bunch of files required to start the server.
- johnnysmithy667
- Posts: 3
- Joined: 16 Jan 2021, 19:12
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to set up a XMage server on Linux Ubunuto 18.4 termi
by johnnysmithy667 » 16 Jan 2021, 19:39
A server log may be helpful, perhaps you can see there how far the connection went and if or why it has been rejected?Thyphu5 wrote:Hey everyone,
after finaly getting the Xmage-Server part up and running on a Linux-Server (who is messing with the encoding of the files?! serious...)
and having the listening on port 17171 ready without any errors, even seeing the listening in netstat on port 17171 and 17172 it seems everything on server side is working correct.
BUT
when trying to connect from a Windows Client, i cant connect. here the Client Log, due to not beeing firm with java, is totaly no help to me. Everything i found so far helped me to get the Server running without errors so i guess it is not something in my /etc/hosts, the xmage/config/config.xml or my ufw (yes ports are allowed, even all ports between Server-Client were open for testing purposes)....
what can it be, that the Client ist getting no connection?mageclient.log
- johnnysmithy667
- Posts: 3
- Joined: 16 Jan 2021, 19:12
- Has thanked: 0 time
- Been thanked: 0 time
68 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 10 guests