[Tutorial] How Config External Ip Server

Results 1 to 12 of 12
  1. #1
    Account Upgraded | Title Enabled! Oraclebr is offline
    True MemberRank
    Jun 2006 Join Date
    ^^Location
    359Posts

    shout [Tutorial] How Config External Ip Server

    1. [1]Config LMSConfig.dat in max_config folder
    `
    Spoiler:

    Code:
    <?xml version="1.0" encoding="utf-8" ?>
    <LMSConfig>
    	<Region Code="101" ScriptVer="1" />
    	<LMS IP="192.168.0.106" Port="10900" AdminToolPort="21000" />
    	<GMS IP="192.168.0.106" 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 IP=192.168.0.106 PublicIP=192.168.0.106 TcpPort=10721 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=AuthBroker ServerNo=1 IP=192.168.0.106 TcpPort=10741 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=MemCached ServerNo=1 IP=192.168.0.106 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 IP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 TcpPort=10751 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=Relay ServerNo=1 IP=192.168.0.106 PublicIP=192.168.0.106 TcpPort=10711 UdpPort=10711 MaxUdpPort=499 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=Community ServerNo=1 IP=192.168.0.106 TcpPort=10791 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=Log ServerNo=1 IP=192.168.0.106 TcpPort=10771 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=DataCache ServerNo=1 IP=192.168.0.106 TcpPort=10761 LogFile=1 LogConsole=1 LogLevel=8 " />
    			<Server Param="ServerType=Stun ServerNo=1 IP=192.168.0.106 PublicIP=192.168.0.106 UdpPort=10781 LogFile=1 LogConsole=1 LogLevel=8 StunStage=1 StunSecondIP=192.168.0.106 StunSecondPort=10782 " />
    		</World>
    	</Zone>
    </Data>


    1. [2]Config ServerBaseConfig.dat


    Spoiler:

    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 IP=192.168.0.106 TcpPort=11211 " />
                <Server Param="ServerType=Auth ServerNo=1 IP=192.168.0.106 PublicIP=192.168.0.106 TcpPort=10721 LogFile=1 LogConsole=1 LogLevel=8 " />
                <Server Param="ServerType=AuthBroker ServerNo=1 IP=192.168.0.106 TcpPort=10741 LogFile=1 LogConsole=1 LogLevel=8 " />
            </Common>
            <World Param="ServerType=World ServerNo=1 IP=192.168.0.106 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 IP=192.168.0.106 TcpPort=10751 LogFile=1 LogConsole=1 LogLevel=8 " />
                <Server Param="ServerType=Community ServerNo=1 IP=192.168.0.106 TcpPort=10791 LogFile=1 LogConsole=1 LogLevel=8 " />
                <!-- Lobby -->
    			<Server Param="ServerType=Game ServerNo=1 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 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 IP=192.168.0.106 PublicIP=192.168.0.106 TcpPort=10711 UdpPort=10711 MaxUdpPort=499 LogFile=1 LogConsole=1 LogLevel=8 " />
                <Server Param="ServerType=Log ServerNo=1 IP=192.168.0.106 TcpPort=10771 LogFile=1 LogConsole=1 LogLevel=8 " />
                <Server Param="ServerType=DataCache ServerNo=1 IP=192.168.0.106 TcpPort=10761 LogFile=1 LogConsole=1 LogLevel=8 " />
                <Server Param="ServerType=Stun ServerNo=1 IP=192.168.0.106 PublicIP=192.168.0.106 UdpPort=10781 LogFile=1 LogConsole=1 LogLevel=8 StunStage=1 StunSecondIP=192.168.0.106 StunSecondPort=10782 " />
            </World>
        </Zone>
    </Data>



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




    1. [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
      Spoiler:

      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


    • In you client Start.bat

      C9.exe EXTERNAL IP,10721,


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

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




    Tks if u need more help , comment pls

    - - - Updated - - -
    Last edited by Oraclebr; 30-12-15 at 02:48 AM.


  2. #2
    Ultimate Member CrazyGuardian is offline
    MemberRank
    Oct 2015 Join Date
    C9 Waterford EULocation
    167Posts

    Re: [Tutorial] How Config External Ip Server

    i test master master no enter P

  3. #3
    Account Upgraded | Title Enabled! Oraclebr is offline
    True MemberRank
    Jun 2006 Join Date
    ^^Location
    359Posts

    Re: [Tutorial] How Config External Ip Server

    my server is off ... you want try now? i can Up server

  4. #4
    Ultimate Member CrazyGuardian is offline
    MemberRank
    Oct 2015 Join Date
    C9 Waterford EULocation
    167Posts

    Re: [Tutorial] How Config External Ip Server

    ty i goto sleep mode

  5. #5
    C9Fan Stunn is offline
    True MemberRank
    Dec 2015 Join Date
    BrazilLocation
    209Posts

    Re: [Tutorial] How Config External Ip Server

    u gotta add external ip on all configs or ipv4 (local) ?
    :)

  6. #6
    Account Upgraded | Title Enabled! Oraclebr is offline
    True MemberRank
    Jun 2006 Join Date
    ^^Location
    359Posts

    Re: [Tutorial] How Config External Ip Server

    i host my server in VPS ( virtual machine) with ip 192.168.0.106 and redirect my Router to this ip

  7. #7
    C9Fan Stunn is offline
    True MemberRank
    Dec 2015 Join Date
    BrazilLocation
    209Posts

    Re: [Tutorial] How Config External Ip Server

    can you help me through teamviewer? add me skype : zzstunngamerzz ( eu sou brasileiro)

    - - - Updated - - -
    @Oraclebr
    :)

  8. #8
    Account Upgraded | Title Enabled! Oraclebr is offline
    True MemberRank
    Jun 2006 Join Date
    ^^Location
    359Posts

    Re: [Tutorial] How Config External Ip Server

    OK

    Beleza adicionado no Skype

  9. #9
    Nothing Personal xFly is offline
    True MemberRank
    Jan 2014 Join Date
    439Posts

    Re: [Tutorial] How Config External Ip Server

    this your local ip or wan ip?

    IP=192.168.0.106 PublicIP=192.168.0.106

  10. #10
    Member Ulkyome Dev is offline
    MemberRank
    Jun 2016 Join Date
    KazanLocation
    26Posts

    Re: [Tutorial] How Config External Ip Server


    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

  11. #11
    Registered sunjunps is offline
    MemberRank
    Mar 2006 Join Date
    ChinaLocation
    8Posts

    Re: [Tutorial] How Config External Ip Server

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

  12. #12
    Newbie tinhve is offline
    MemberRank
    Dec 2015 Join Date
    4Posts

    Re: [Tutorial] How Config External Ip Server

    Quote Originally Posted by sunjunps View Post
    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 :(



Advertisement