Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tutorial] How Config External Ip Server

Joined
Jun 27, 2006
Messages
95
Reaction score
17

  1. [1]Config LMSConfig.dat in max_config folder
`
Code:
<?xml version="1.0" encoding="utf-8" ?>
<LMSConfig>
	<Region Code="101" ScriptVer="1" />
	<LMS IP="[COLOR="#FF0000"]192.168.0.106[/COLOR]" Port="10900" AdminToolPort="21000" />
	<GMS IP="[COLOR="#FF0000"]192.168.0.106[/COLOR]" Port="10001" />
	<LogOutput File="1" Console="1" DebugWindow="1" Level="6" />
</LMSConfig>
<!-- ServerType -->
<!-- 
1: MemCached 
2: Auth 
3: AuthBroker
4: World 
5: Auction 
6: Community 
7: Game 
8: Relay
9: Log
10: DataCache
11: Stun
-->
<!-- GameServerType -->
<!--
0: Game
1: pvp
2: guild
3: lobby
-->
<Data>
	<Zone No="1">
		<Common>
			<ConnectDB Name="Unity" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Unity" />
			<ConnectDB Name="Service" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Service" />
			<Server Param="ServerType=Auth ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] PublicIP=192.168.0.106 TcpPort=10721 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=AuthBroker ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10741 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=MemCached ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=11211 " />
			<!-- this param will be applied for all game servers in this zone -->
			<!--
				KeepAliveInterval : Fixed Value
				KeepAliveCheckThreshold : Max alive wait-time between client and server
				MaxSkillCountPerSec : Max skill count per second
				SpeedHackCheckThreshold : Max interval tick time between client and server
			-->
			<Default Param="KeepAliveInterval=3 KeepAliveCheckThreshold=30 MaxSkillCountPerSec=7 SpeedHackCheckThreshold=60" />
		</Common>
		<World Param="ServerType=World ServerNo=1[COLOR="#FF0000"] IP=192.168.0.106[/COLOR] TcpPort=10731 Name=World1 MaxUser=10 LogServer=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0">
			<Common>
				<ConnectDB Name="World" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9World" />
				<ConnectDB Name="Log" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Log" />
				<ConnectDB Name="Rank" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Rank" />
				<ContentSwitches UseInGameShop="TRUE" UseCashStore="TRUE" UseNpcShop="TRUE" UsePersonalStore="TRUE" UsePcTrade="TRUE" UseMail="TRUE" UsePcWarehouse="TRUE" UseGuildWarehouse="TRUE" UseSpecialItem="TRUE" UseItemRepair="TRUE" UseItemEnchant="TRUE" UseItemPickup="TRUE" UseAutoBlock="FALSE" />
				<!-- ITC_SERVER Connection Information -->
				<ChinaBilling IP="127.0.0.1" Port="7100" SecondIP="127.0.0.1" SecondPort="8888" UserID="test" SecretKey="itc_client" />
				<!-- this param will be applied for all game servers in this world -->
				<Default Param="MaxMachineUser=2000 DailyInit=7 WeeklyInit=6,7"  />
				<Default Param="ClassDisable=-1 MaxMachineUser=2000 DailyInit=7 WeeklyInit=6,7 ServerOneState=0 Dorian=0 HanRTA=0 SpeedServer=0 ServerEvent=0 GameGuard=1 AAS=0 NewCharacter=0 " />
				<DailyReset TimeHour="7" TiredRate="150" ResurrectionCoin="5" SurvivalCoin="3" SurvivalFortuneModeCoin="10" NormalBoost="100" PcRoomBoost="100" PcRoomResurrectionCoin="0" />
			</Common>
			<!-- Lobby -->
			<Server Param="ServerType=Game ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10501 ChannelNo=1 GameServerType=LOB MapKey=56 MaxUser=4000 Community=0 Auction=0 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Guild House -->
			<Server Param="ServerType=Game ServerNo=2 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10502 ChannelNo=1 GameServerType=GHS MapKey=10 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- PVP -->
			<Server Param="ServerType=Game ServerNo=3 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10503 ChannelNo=1 GameServerType=PVP MapKey=10 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Fortune Survival -->
			<Server Param="ServerType=Game ServerNo=4 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10504 ChannelNo=1 GameServerType=CTS MapKey=143 MaxUser=1000 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Arena -->
			<Server Param="ServerType=Game ServerNo=5 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10505 ChannelNo=1 GameServerType=NOR MapKey=80 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Channels -->
			<Server Param="ServerType=Game ServerNo=6 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10506 ChannelNo=1 GameServerType=NOR MapKey=10 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<Server Param="ServerType=Game ServerNo=7 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10507 ChannelNo=1 GameServerType=NOR MapKey=19 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<Server Param="ServerType=Game ServerNo=8 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10508 ChannelNo=1 GameServerType=NOR MapKey=33 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
                        <Server Param="ServerType=Game ServerNo=9 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10509 ChannelNo=1 GameServerType=NOR MapKey=186 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=89Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			
			<Server Param="ServerType=Auction ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10751 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=Relay ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10711 UdpPort=10711 MaxUdpPort=499 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=Community ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10791 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=Log ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10771 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=DataCache ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10761 LogFile=1 LogConsole=1 LogLevel=8 " />
			<Server Param="ServerType=Stun ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] UdpPort=10781 LogFile=1 LogConsole=1 LogLevel=8 StunStage=1 StunSecond[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] StunSecondPort=10782 " />
		</World>
	</Zone>
</Data>


  • [2]Config ServerBaseConfig.dat

Code:
<?xml version="1.0" encoding="utf-8" ?>
<Data>
    <Zone No="1">
        <Common>
            <ConnectDB Name="Unity" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Unity" />
            <ConnectDB Name="Service" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Service" />
            <Default Param="KeepAliveInterval=3 KeepAliveCheckThreshold=30 MaxSkillCountPerSec=7 SpeedHackCheckThreshold=60" />
            <Server Param="ServerType=MemCached ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=11211 " />
            <Server Param="ServerType=Auth ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] PublicIP=192.168.0.106 TcpPort=10721 LogFile=1 LogConsole=1 LogLevel=8 " />
            <Server Param="ServerType=AuthBroker ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10741 LogFile=1 LogConsole=1 LogLevel=8 " />
        </Common>
        <World Param="ServerType=World ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10731 Name=Test MaxUser=10 Dorian=0 HanRTA=0 ServerEvent=0 LogServer=1 GameGuard=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 AAS=0 NewCharacter=0 ">
            <Common>
                <ContentSwitches UseInGameShop="TRUE" UseNpcShop="TRUE" UsePersonalStore="TRUE" UsePcTrade="TRUE" UseMail="TRUE" UsePcWarehouse="TRUE" UseGuildWarehouse="TRUE" UseSpecialItem="TRUE" UseItemRepair="TRUE" UseItemEnchant="TRUE" UseItemPickup="TRUE" UseAutoBlock="FALSE" />
                <ChinaBilling IP="127.0.0.1" Port="7100" SecondIP="127.0.0.1" SecondPort="8888" UserID="test" SecretKey="itc_client" />
                <ConnectDB Name="World" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9World" />
                <ConnectDB Name="Log" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Log" />
                <ConnectDB Name="Rank" ID="sa" Pass="123456" Address="127.0.0.1,1433" DBName="C9Rank" />
				<Default Param="MaxMachineUser=2000" />
			</Common>
            <Server Param="ServerType=Auction ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10751 LogFile=1 LogConsole=1 LogLevel=8 " />
            <Server Param="ServerType=Community ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10791 LogFile=1 LogConsole=1 LogLevel=8 " />
            <!-- Lobby -->
			<Server Param="ServerType=Game ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10501 ChannelNo=1 GameServerType=LOB MapKey=56 MaxUser=4000 Community=0 Auction=0 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Guild House -->
			<Server Param="ServerType=Game ServerNo=2 [COLOR="#FF0000"]IP=192.168.0[/COLOR].106 Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10502 ChannelNo=1 GameServerType=GHS MapKey=10 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- PVP -->
			<Server Param="ServerType=Game ServerNo=3 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10503 ChannelNo=1 GameServerType=PVP MapKey=10 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Fortune Survival -->
			<Server Param="ServerType=Game ServerNo=4 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10504 ChannelNo=1 GameServerType=CTS MapKey=143 MaxUser=1000 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Arena -->
			<Server Param="ServerType=Game ServerNo=5 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10505 ChannelNo=1 GameServerType=NOR MapKey=80 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<!-- Channels -->
			<Server Param="ServerType=Game ServerNo=6 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10506 ChannelNo=1 GameServerType=NOR MapKey=10 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<Server Param="ServerType=Game ServerNo=7 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10507 ChannelNo=1 GameServerType=NOR MapKey=19 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
			<Server Param="ServerType=Game ServerNo=8 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10508 ChannelNo=1 GameServerType=NOR MapKey=33 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
                        <Server Param="ServerType=Game ServerNo=9 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10509 ChannelNo=1 GameServerType=NOR MapKey=186 MaxUser=500 Community=1 Auction=1 ChatLog=1 LogServer=1 DataCache=1 LogFile=1 LogConsole=1 LogLevel=8 Autoblock=0 Threshold=0 PcTradeThreshold=0 " />
		      
                       <Server Param="ServerType=Relay ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10711 UdpPort=10711 MaxUdpPort=499 LogFile=1 LogConsole=1 LogLevel=8 " />
            <Server Param="ServerType=Log ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10771 LogFile=1 LogConsole=1 LogLevel=8 " />
            <Server Param="ServerType=DataCache ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] TcpPort=10761 LogFile=1 LogConsole=1 LogLevel=8 " />
            <Server Param="ServerType=Stun ServerNo=1 [COLOR="#FF0000"]IP=192.168.0.106[/COLOR] Public[COLOR="#FF0000"]IP=192.168.0.106[/COLOR] UdpPort=10781 LogFile=1 LogConsole=1 LogLevel=8 StunStage=1 StunSecondIP=192.168.0.106 StunSecondPort=10782 " />
        </World>
    </Zone>
</Data>



  • [3] Copy LMSConfig.dat and ServerBaseConfig.dat and Paste in ServerData Folder

    REMOVED


  • [4]Now go to SQL Server Configuration Manager and check if is like this, if not, configure and restart SQL




  1. [5] And finaly edit Start.bat
    Code:
    @echo off
    copy /y "max_config\LMSConfig.DAT" "ServerData\" > null
    copy /y "max_config\ServerBaseConfig.dat" "ServerData\" > null
    start C9AgentServer.exe
    ping -n 2 192.168.0.106 > null
    start C9LocalManagementServer.exe
    ping -n 2 192.168.0.106 > null
    start C9AuthServer.exe
    ping -n 2 192.168.0.106 > null
    start C9AuthBrokerServer.exe
    ping -n 2 192.168.0.106 > null
    start C9LogServer.exe 1
    ping -n 3 192.168.0.106 > null
    start C9WorldServer.exe 1
    ping -n 5 192.168.0.106 > null
    start C9AuctionServer.exe
    ping -n 5 192.168.0.106 > null
    start C9CommunityServer.exe
    ping -n 2 192.168.0.106 > null
    start C9DataCacheServer.exe
    ping -n 2 192.168.0.106 > null
    start C9RelayServer.exe
    ping -n 2 192.168.0.106 > null
    start C9STUNServer.exe
    ping -n 2 192.168.0.106 > null
    start C9GameServer.exe 1
    ping -n 8 192.168.0.106 > null
    start C9GameServer.exe 2
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 3
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 4
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 5
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 6
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 7
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 8
    ping -n 10 192.168.0.106 > null
    start C9GameServer.exe 9
    exit


------------------------------ If you use a Router " I need open some ports " -------------------------------

i don't know if need open all but... work fine

REMOVED


Tks if u need more help , comment pls

 
Last edited:
Experienced Elementalist
Joined
Dec 19, 2015
Messages
247
Reaction score
69
u gotta add external ip on all configs or ipv4 (local) ?
 
Experienced Elementalist
Joined
Dec 19, 2015
Messages
247
Reaction score
69
can you help me through teamviewer? add me skype : zzstunngamerzz ( eu sou brasileiro)


Oraclebr
 
Initiate Mage
Joined
Jun 19, 2016
Messages
65
Reaction score
13
983c125e777fb6195698928328cf4bf8 - [Tutorial] How Config External Ip Server - RaGEZONE Forums

When I try to connect to me after the authorization, there is an error of the connection failure.
Locally we connect without problems
Through VPN also
Please help. Can in return give a subdomain in our domain zone yoursubdomain.mmerosix.ru =)
In the world of the server when connecting writes
aff042d94406ac2317cf6713e0b003f9 - [Tutorial] How Config External Ip Server - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Joined
Mar 12, 2006
Messages
12
Reaction score
1
I follow this instruction, it can only play in intranet.
if you try to config PublicIP to a server behind the router, then the client cannot connect gameserver。
for ex: the intranet server is 192.168.0.106, and the external IP is 55.56.57.58. if you set 192.168.0.106 in both IP and PublicIP, you can login but cannot enter game, the client will try to connect 192.168.0.106:10501 . and if you set 55.56.57.58 in PublicIP section, the gameserver.exe will crash...
 
Initiate Mage
Joined
Dec 15, 2015
Messages
4
Reaction score
0
I follow this instruction, it can only play in intranet.
if you try to config PublicIP to a server behind the router, then the client cannot connect gameserver。
for ex: the intranet server is 192.168.0.106, and the external IP is 55.56.57.58. if you set 192.168.0.106 in both IP and PublicIP, you can login but cannot enter game, the client will try to connect 192.168.0.106:10501 . and if you set 55.56.57.58 in PublicIP section, the gameserver.exe will crash...
I get the exactly this error. Now I just think about get the statics IP (just 1) for the dedicated server to solve this problem. I have no ideas how to fix this :(
 
Back
Top