Page 1 of 1

Trouble setting up an Xmage server

PostPosted: 24 Aug 2020, 22:40
by Bremlo
Hello. I'm attempting to set up an XMage server for a friend and I on Windows 10, hosting it off of my machine running Windows 10. I have a router.

I followed the instructions I found on another forum directing me to get a domain address, point it to my router's IP address, forward ports 17171 and 17179 (secondary port) then edit my /etc/hosts to bounce my IPv4 to my domain address.

Whenever the server starts I get the error:
Code: Select all
FATAL 2020-08-24 18:27:52,246 Failed to start server - (domain address I'm using):17171/?serializationtype=jboss&maxPoolSize=300 =>[main] Main.main SocketServerInvoker (domain address I'm using) error creating ServerSocket[]: Cannot assign requested address: JVM_Bind
        at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSockets(
        at org.jboss.remoting.transport.socket.SocketServerInvoker.start(
        at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.start(
        at org.jboss.remoting.transport.Connector.start(
        at org.jboss.remoting.transporter.TransporterServer.start(
        at mage.server.Main.main(
My hosts file looks like this:
Code: Select all
#       localhost
#   ::1             localhost
# <domain address I'm using>
I tried using my machine's IPv4 address which is and I'm still getting this bind error. What do I do? Thank you.

Kindest Regards

Re: Trouble setting up an Xmage server

PostPosted: 25 Aug 2020, 04:21
by Bremlo
I've managed to solve the issue. I included the # symbol in my etc/hosts file, and have since removed them from the beginning of the line.

But now I have a new issue. So far I've:
Obtained a domain address, successfully pointed it to my IP address
Edited my etc/hosts file to bind the domain address to my PC's internal IPv4 address
Successfully launched the server, listening on the domain address at ports 17171, with port 17172 as the secondary port
Connected to my own server using localhost

But now my friend cannot connect to the server after all of this. They get the message "Server is likely offline" and I am at a loss.

Re: Trouble setting up an Xmage server

PostPosted: 25 Aug 2020, 07:21
by JayDi
It's need some time to update dns ip address. So just wait until "ping domain-address" from friends machine goes to your IP-address.

Re: Trouble setting up an Xmage server

PostPosted: 25 Aug 2020, 19:08
by Bremlo
Thank you, JayDi. It turns out that I set up everything correctly, but my router needed to restart in order to forward the ports properly. Thank you for your time!