need help on server

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
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