Page 1 of 1

Having Trouble Setting Up XMage Server

PostPosted: 16 Jul 2019, 21:55
by Ronin009
I'm trying to setup an Xmage server on my PC. I have edited the server's config.xml, and I created a domain to forward to my PC's IP address. When I try to start the server I get this error:
Code: Select all
FATAL 2019-07-16 17:50:28,816 Failed to start server - http://tetxmage.play.ai:17171/?serializationtype=jboss&maxPoolSize=300 =>[main] Main.main
java.lang.RuntimeException: Error setting up server invoker SocketServerInvoker[http:-1]
I'm not exactly sure of the syntax for editing the hosts file on my PC, this is what I have it reading:
Code: Select all
127.0.0.1       localhost
192.168.1.20    tetxmage.play.ai
Is that correct or am I supposed to use the public IP I assigned the domain to?

Re: Having Trouble Setting Up XMage Server

PostPosted: 16 Jul 2019, 23:46
by JayDi
192.168.1.20 must be your real server machine address, not NAT/router.

As example you can use that:

Server:
127.0.0.1 localhost
192.168.1.20 tetxmage.play.ai

NAT/Router:
port forward 17171 and 17179 (look at config.xml) from income to 192.168.1.20

Client:
connect to tetxmage.play.ai

Connection workflows:

* server:
- load config and start up service on every available networks (if serverAdress = 0.0.0.0) or on selected network (IP must be direct server's IP).

* client:
- client connects to tetxmage.play.ai;
- NAT forwards it to inner server IP (192.168.1.20);
- server get income connection, finds own machine name (transform serverAdress/127.0.0.1 to name) and send it to client;
- client connects to that received name.