Page 1 of 1

need help on server

PostPosted: 31 Jul 2011, 17:31
by Milod
so i edited the xml file in server/config map i entered <server serverAddress="my ip" serverName="mage-server" port="17171"

opended port 17171 and is it tcp or udp?

then i runned startserver.bat but the program interface wont start only the log screen then i tried to run startmage.bat and runs then i type localhost for the server conect then it never conects me tried to enter my own ip wont work either then my machine ip also not working
so i reseted the config.xml file to localhost now i can play the game and i gave my ip to my friend and my port number no conection timed out he says

so my question is wat exacly do i need to edit and wat does my friend need to have about me to conect to me and wat port udp tcp?

iam bit new to this so little easy explain plz

Re: need help on server

PostPosted: 01 Aug 2011, 10:37
by nantuko84
it uses rmi that is on top of tcp/ip

to make it working you have to change the following:
1. /server/config/config.xml
<server serverAddress="10.11.12.13" serverName="mage-server" port="17171" maxGameThreads="10" maxSecondsIdle="600"/>
2. run startserver.bat
it should start and write in console:
Code: Select all
INFO  [2011-08-01 14:32 [08:810]] Main[main]: MAGE server - using address 10.11.12.13
3. 17171 should be opened
you may check that it works from your place:
Code: Select all
telnet 10.11.12.13 17171
second player may also check the same to make sure ports are opened and your network is reachable
Code: Select all
telnet 10.11.12.13 17171
4. start client with startclient.bat
5. enter 10.11.12.13 as address, and 17171 as port

it should connect now to your server