need help. how make server public?
and what i need to do to make it public.
Printable View
need help. how make server public?
and what i need to do to make it public.
1)Enter the web: http://whatismyip.com/
2)Copy IP
Change all IPS, the following files:
Code:
Directory: /etc/local
Change IPS: ChatNode_24, GlobalMgrSvr, LoginSvr, LoginSvr_01, WorldSvr and WorldSvr_24_01
Remember: Only you put IPS, ie. "127.0.0.1" replaced by the ip that tells the page.Code:
Directory: /home/cabal
Change IPS: gen_config
Annotation: I have configured the ips the well and the server walks perfectly online, if you have a different configuration and you're online, perfect, I work that way.
------------------
Video tutoreal how put online server (change ip)
Video Here
open port 38111 (thanks to xz3r0x for alerting)
You need open ports?, visit:
http://www.portforward.com/english/r...outerindex.htm
Use search next time or at last read the stickys ..
yes ... you need to change them as well ... watch the video again if you are not sure ...
PS: ... if you already changed the IPs (like in the video) they are no longer 127.0.0.1 ...
I will show you, This is my gen_config.sh
Quote:
#!/bin/sh
:
#echo -n "GMS/GDBA IP address [207.61.143.145] : "
#read gmsip
if [ -z $gmsip ]; then
gmsip=172.16.1.5
fi
#echo -n "DBA IP address [207.61.143.145] : "
#read dbaip
if [ -z $dbaip ]; then
dbaip=172.16.1.7
fi
IPADDR=`ifconfig eth0 | grep Bcast | awk '{print $2 }' | sed -e 's/addr:/IPAddress=/g'`
rm -f /etc/cabal/LoginSvr_*
rm -f /etc/init.d/LoginSvr_*
rm -f /etc/cabal/DBAgent_*
rm -f /etc/init.d/DBAgent_*
rm -f /etc/cabal/WorldSvr_*
rm -f /etc/init.d/WorldSvr_*
count1=1
count2=1
for daemon in `cat /etc/cabal/server_list | grep -v ^#`; do
name="${daemon%%_*}"
echo "setting $daemon"
t="${daemon#*_}"
i="${t%%_*}"
j="${t##*_}"
if [ $name == "LoginSvr" ]; then
ln -sf /usr/bin/$name /usr/bin/$daemon
sed /etc/cabal/$name.ini \
-e "s/Addr=10.29.215.29/Addr=$gmsip/g" \
-e "s/GroupIdx=1/GroupIdx=`expr $i / 1`/g" \
> /etc/cabal/$daemon.ini
elif [ $name == "GlobalMgrSvr" ]; then
echo
elif [ $name == "GlobalDBAgent" ]; then
ln -sf /usr/bin/DBAgent /usr/bin/$daemon
elif [ $name == "CashDBAgent" ]; then
ln -sf /usr/bin/DBAgent /usr/bin/$daemon
elif [ $name == "DBAgent" ]; then
ln -sf /usr/bin/$name /usr/bin/$daemon
sed /etc/cabal/$name.ini \
-e "s/ServerIdx=1/ServerIdx=`expr $i / 1`/g" \
-e "s/Port=38181/Port=381`expr 80 + $count1`/g" \
-e "s/DSN=CabalGame01/DSN=CabalGame$i/g" \
> /etc/cabal/$daemon.ini
count1=`expr $count1 + 1`
elif [ $name == "WorldSvr" ]; then
ln -sf /usr/bin/$name /usr/bin/$daemon
dbaport=3818`expr $i / 1`
serveridx=`expr $i / 1`
if [ $serveridx -ge 10 ]; then
dbaip=172.16.1.8
dbaport=3818`expr $i / 1 - 9`
fi
chatclientip=59.39.66.`expr 20 + $i / 1`
chatserverip=172.16.1.`expr 20 + $i / 1`
sed /etc/cabal/$name.ini \
-e "s/IPAddress=[0-9.]*/$IPADDR/g" \
-e "s/ServerIdx=1/ServerIdx=`expr $i / 1`/g" \
-e "s/GroupIdx=1/GroupIdx=`expr $j / 1`/g" \
-e "s/Port=38111/Port=381`expr 10 + $count2`/g" \
-e "s/AddrForClient=[0-9.]*/AddrForClient=$chatclientip/g" \
-e "s/AddrForServer=[0-9.]*/AddrForServer=$chatserverip/g" \
-e "s/Addr=10.29.215.29/Addr=$gmsip/g" \
-e "s/Addr=10.29.215.81/Addr=$dbaip/g" \
-e "s/Addr=172.16.1.16/Addr=$dbaip/g" \
-e "s/Port=38181/Port=$dbaport/g" \
> /etc/cabal/$daemon.ini
count2=`expr $count2 + 1`
elif [ $name == "ChatNode" ]; then
ln -sf /usr/bin/$name /usr/bin/$daemon
sed /etc/cabal/$name.ini \
-e "s/ServerNationIdx=1/ServerNationIdx=`expr $i / 1`/g" \
-e "s/Port=38121/Port=381`expr 20 + $count2`/g" \
> /etc/cabal/$daemon.ini
count2=`expr $count2 + 1`
fi
ln -sf /etc/init.d/cabal_server /etc/init.d/$daemon
done
As you can see all the 127.0.0.1 IP is changed to my public IP which is, 207.61.143.145 .
at the same time diffrent IP's such as these:
Still are intact, so to make this clear you are telling me it is ok to change all of them right?Quote:
-e "s/Addr=10.29.215.29/Addr=$gmsip/g" \
-e "s/Addr=10.29.215.81/Addr=$dbaip/g" \
-e "s/Addr=172.16.1.16/Addr=$dbaip/g" \
I was wondering If i may borrow your gen_config.sh file so I can doa simple find and replace :)
thanks.
oH -.-" ... you was talking about those IPs :?
i don't know what to say ... another person need to answer you in this case ...
i only can make you a suggestion ... make a backup of that file and try everything you want ... if you did a mistake just use your backup file to get everything back to normal xD ...
dont work i changed all to my network ips and nothing worked i watched the video but nothing. my ip 195.216.178.161 i dont have such ip like 192.xxx.x.x -
like that in x place how much numbers.
and i cant connect to my server at all. so what to do. what i need config.
and im using nat. server works for me on nat.