OK論壇

 找回密碼
 註冊
查看: 2807|回復: 2

連線socket #2 error 10060,有參閱相關設定

[複製鏈接]
  • TA的每日心情
    慵懶
    2016-4-26 08:55 PM
  • 簽到天數: 40 天

    連續簽到: 1 天

    [LV.5]常住居民I

    發表於 2016-3-7 13:20:06 | 顯示全部樓層 |閱讀模式
    本帖最後由 matt070516 於 2016-3-8 06:58 PM 編輯

    我有看過這篇相關路由器設定
    http://forum.gamer.com.tw/C.php?bsn=18673&snA=132163
    還有前一陣子有人問差不多的問題
    http://okayro.com/thread-284403-1-2.html
    可是看上面這篇是開TXT版的,我現在要開SQL,有試過用EA14729TXT開都很正常,換RA177701SQL就沒辦法,單機127.0.0.1測試使用都沒問題,想外連給朋友進來測試都失敗,每次黑窗跑玩過10秒就跳出socket #2 error 10060,改過各種設定,Port也有設了,都還是會有一樣的問題。有用NO-IP
    防火牆是防毒軟體的防火牆,Windows的就關掉,也有用進去防毒軟體內設定相關port

    以下貼上我的 char _athena,map _athena ,inter _athena 片段部分
    char _athena:
    1. // Athena Character configuration file.

    2. // Note: "Comments" are all text on the right side of a double slash "//"
    3. // Whatever text is commented will not be parsed by the servers, and serves
    4. // only as information/reference.

    5. // 服務器連線使用者帳號與密碼
    6. userid: s1
    7. passwd: p1

    8. // 服務器名稱,可以使用ASCII 160 作為空格字元
    9. // 注意:服務器名稱中不能帶空格,否則工會圖會無法出現!
    10. server_name: rAthena

    11. // 服務器顯示名稱:要在4至23位元組之間
    12. wisp_server_name: rAthena

    13. // 登錄服務器 IP
    14. // 角色服務器連接登入服務器的IP
    15. // 如果你的服務器運作在防火牆或是多網卡後面,你應該設定這裡
    16. // 在這種情況下,你需要指定你希望能與外面通訊的的 IP 地址
    17. login_ip: rogoodness.no-ip.info

    18. // 如果你是一個網卡配置了多個IP,就需要配置這裡
    19. // 注意:當你希望在多個服務器上使用相同的端口時,此設置允許你在多個接口
    20. // 中運行多個服務器
    21. bind_ip: 127.0.0.1

    22. // 登錄服務器連接端口
    23. login_port: 6900

    24. // 角色服務器IP
    25. // 角色服務器對外的IP
    26. // 如果你的服務器運作在防火牆或是多網卡後面,你應該設定這裡
    27. // 在這種情況下,你需要指定你希望能與外面通訊的的 IP 地址
    28. char_ip: rogoodness.no-ip.info

    29. // 角色服務器連接端口
    30. char_port: 6121

    31. // 在每條信息前面輸出的時間戳格式
    32. // 最多包含20個字符
    33. // 通常格式包括
    34. // %I:%M:%S %p (小時:分鐘:秒 12小時制, AM/PM 格式)
    35. // %H:%M:%S (小時:分鐘:秒, 24 小時制)
    36. // %d/%b/%Y (日/月/年)
    37. // 可參考 strftime() 手冊查詢可用的其他格式
    38. //timestamp_format: [%d/%b %H:%M]

    39. //If redirected output contains escape sequences (color codes)
    40. stdout_with_ansisequence: no

    41. //對console輸出的信息進行過濾選項
    42. //1: 隱藏普通信息
    43. //2: 隱藏狀態信息
    44. //4: 隱藏注意信息
    45. //8: 隱藏警告信息
    46. //16: 隱藏錯誤及SQL錯誤信息
    47. //32: 隱藏偵錯訊息
    48. //例子: "console_silent: 7"隱藏普通、狀態和注意信息 (1+2+4)
    49. console_silent: 0

    50. // Console Commands
    51. // 准許 console 指令 開啟/關閉
    52. // 這個指令被疊加紀錄在 log.file 內
    53. console: off

    54. // 服務器類型.  
    55. // 暫無功能.  
    56. // 顯示在客戶端服務器名之後.  
    57. // 0=normal, 1=maintenance, 2=over 18, 3=paying, 4=P2P  
    58. char_maintenance: 0

    59. // 是否允許建立新角色
    60. // 現在已確實支援 [Kevin]
    61. char_new: 1

    62. // 在服務器狀態中顯示新建角色
    63. char_new_display: 0

    64. // 連線到此服務器的最大使用者人數.設定0為無限制.
    65. max_connect_user: -1

    66. // 突破最大人數限制的最小GM等級
    67. gm_allow_group: 99

    68. // 服務器多久儲存所有文件時間間格? (秒為單位)
    69. // 注意: 對於TXT版本中所有的數據文件都有效
    70. // SQL版本的存儲事件控制在map配置文件中
    71. autosave_time: 10

    72. // 當存取 角色/工會/組隊/寵物 信息的時候是否顯示在命令提示列上
    73. save_log: yes

    74. // 遊戲起始點的地圖名稱與座標
    75. // Format: <map_name>,<x>,<y>
    76. start_point: prontera,154,88

    77. // Starting items for new characters
    78. // Max number of items is MAX_STARTITEM in char.c (default 32)
    79. // Format: <id>,<amount>,<position>:<id>,<amount>,<position>:...
    80. // To auto-equip an item, include the position where it will be equipped; otherwise, use zero.
    81. start_items: 1201,1,2:2301,1,16

    82. // 初心者一開始配發的錢
    83. start_zeny: 0

    84. // Size for the fame-lists
    85. fame_list_alchemist: 10
    86. fame_list_blacksmith: 10
    87. fame_list_taekwon: 10

    88. // 工會獲得的經驗值修改
    89. // 調整稅率在增加到工會之前. 例如,
    90. // 假如設成 200, 工會將得到兩倍玩家稅率的經驗值
    91. guild_exp_rate: 100

    92. // 未知的角色名稱
    93. unknown_char_name: Unknown

    94. // 是否記錄角色服務器日誌?
    95. log_char: 1

    96. // 允許名字中大小寫
    97. // 範例:Test-test-TEST-TesT; 設定: 0 不允許 (默認值), 1 允許
    98. name_ignoring_case: no

    99. // 角色名稱符號位元組管理 位元組表(0x00-0x1f) 是非標準的.設定值總共有:
    100. // NOTE: Applies to character, party and guild names.
    101. // 0: 沒有限制(默認)
    102. // 1: 只允許在 'char_name_letters'中設定的 字母/符號.
    103. // 2: 禁止在'char_name_letters'設定的字母/符號,以外的全都允許
    104. char_name_option: 2

    105. // 設定 'char_name_option' 選項中被限定的字母與符號
    106. // 備註: 別打上空白格,除非你是想把空白格加進去
    107. //char_name_letters: abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
    108. char_name_letters: @#

    109. // 依基本等級限制角色刪除
    110. // 0: 無限制 (玩家可以刪除角色,不管角色等級多少)
    111. // -X: 你不能刪除基本等級 <= X 的角色
    112. // Y: 你不能刪除基本等級 >= Y 的角色
    113. // e.g. char_del_level: 80 (玩家不能刪除基本等級大於80的角色)
    114. char_del_level: 0

    115. // 角色刪除延遲時間
    116. // 默認: 86400 (24 hours)
    117. // 注意: 需要2010-08-03aragexeRE或更新的客戶端
    118. char_del_delay: 0

    119. // Restrict character deletion by email address or birthdate.
    120. // This restricts players from changing the langtype and deleting characters.
    121. // For birthdate, the client must be 20100803 or newer.
    122. // 1: Email address
    123. // 2: Birthdate (default)
    124. // 3: Email address or Birthdate
    125. char_del_option: 2

    126. // DB資料夾所在目錄 (item_db.txt, 其他.)
    127. db_path: db

    128. //===================================
    129. // Pincode system
    130. //===================================
    131. // NOTE: Requires client 2011-03-09aragexeRE or newer.
    132. // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse.
    133. // Default: yes
    134. pincode_enabled: yes

    135. // How often does a user have to change his pincode?
    136. // 0: never (default)
    137. // X: every X days
    138. pincode_changetime: 0

    139. // How often can a user enter the wrong pincode?
    140. // Default: 3 (client maximum)
    141. pincode_maxtry: 3

    142. // Are users forced to use a pincode when the system is enabled?
    143. // Default: yes
    144. pincode_force: yes

    145. //===================================
    146. // Addon system
    147. //===================================
    148. // Character moving
    149. // NOTE: Requires client 2011-09-28aragexeRE or newer.
    150. // Allows users to move their characters between slots.
    151. // Default: yes
    152. char_move_enabled: yes

    153. // Allow users to move a character to a used slot?
    154. // If enabled the characters are exchanged.
    155. // Default: yes
    156. char_movetoused: yes

    157. // Allow users to move characters as often as they like?
    158. char_moves_unlimited: no

    159. // Should we check if sql-tables are correct on server startup ?
    160. char_checkdb: yes

    161. import: conf/import/char_conf.txt
    複製代碼
    map _athena
    1. //--------------------------------------------------------------
    2. //rAthena Map-Server Configuration File
    3. //--------------------------------------------------------------

    4. // Note: "Comments" are all text on the right side of a double slash "//"
    5. // Whatever text is commented will not be parsed by the servers, and serves
    6. // only as information/reference.

    7. //--------------------------------------------------------------
    8. //                     Configuration Info
    9. //--------------------------------------------------------------
    10. // Interserver通信密碼, 在 account.txt 中設定 ( 或 equiv.)
    11. userid: s1
    12. passwd: p1

    13. // 角色服務器的IP
    14. // 地圖服務器依據此ip連到角色服務器
    15. // 如果你的服務器運作在防火牆或是多網卡後面,你應該設定這裡
    16. // 在這種情況下,你需要指定你希望能與外面通訊的的 IP 地址
    17. char_ip: rogoodness.no-ip.info

    18. // 如果你是一個網卡配置了多個IP,就需要配置這裡
    19. //這樣可以允許在一個網卡上運行多個athena服務器
    20. // 注意:當你希望在多個服務器上使用相同的端口時,此設置允許你在多個接口中運行多個服務器
    21. bind_ip: 127.0.0.1

    22. // 角色服務器的連接端口
    23. char_port: 6121

    24. // 地圖服務器的IP
    25. // 地圖服務器對外使用此ip
    26. // 如果你的服務器運作在防火牆或是多網卡後面,你應該設定這裡
    27. // 在這種情況下,你需要指定你希望能與外面通訊的的 IP 地址
    28. map_ip: rogoodness.no-ip.info

    29. // 地圖服務器的連接端口
    30. map_port: 5121

    31. //在每條信息前面輸出的時間戳格式
    32. //最多包含20個字符
    33. //通常格式:
    34. // %I:%M:%S %p (小時:分鐘:秒 12 小時制, AM/PM 格式)
    35. // %H:%M:%S (小時:分鐘:秒, 24 小時制)
    36. // %d/%b/%Y (日/月/年)
    37. //可參考 strftime() 手冊查詢可用的其他格式
    38. //timestamp_format: [%d/%b %H:%M]

    39. //If redirected output contains escape sequences (color codes)
    40. stdout_with_ansisequence: no

    41. //Makes server log selected message types to a file in the /log/ folder
    42. //1: Log Warning Messages
    43. //2: Log Error and SQL Error messages.
    44. //4: Log Debug Messages
    45. //Example: "console_msg_log: 7" logs all 3 kinds
    46. //Messages logged by this overrides console_silent setting
    47. console_msg_log: 3

    48. //對console輸出的信息進行過濾選項
    49. //1: 隱藏普通信息
    50. //2: 隱藏狀態信息
    51. //4: 隱藏注意信息
    52. //8: 隱藏警告信息
    53. //16: 隱藏錯誤及SQL錯誤信息
    54. //32: 隱藏偵錯訊息
    55. //例子: "console_silent: 7"隱藏普通、狀態和注意信息 (1+2+4)
    56. console_silent: 0

    57. //從哪個目錄讀取所有的數據文件?
    58. db_path: db

    59. // 是否允許 @guildspy 和 @partyspy 管理指令
    60. // 注意:允許這兩個指令將降低數據包的發送性能.
    61. enable_spy: no

    62. // 是否從遊戲資料夾內讀取.grf檔案並取得地圖資料?
    63. // 設定為'yes'的話,請到 grf-files.txt 設定檔案路徑
    64. use_grf: no

    65. // 控制台指令
    66. // 是否允許使用控制台指令 on/off
    67. // 用法參考 log 配置文件
    68. console: off

    69. // 資料自動儲存時間
    70. // 所有腳色將會在這個區間完成儲存, 單位為秒 (例如:
    71. // 自動儲存時間設定為60秒而線上共有60玩家 -> 每一秒將儲存一個
    72. // 腳色)
    73. autosave_time: 30

    74. // 最小資料儲存區間 (毫秒)
    75. // Prevent saving characters faster than at this rate (prevents char-server
    76. // save-load getting too high as character-count increases)
    77. minsave_time: 100

    78. // 跟autosave_time不同, 角色也將儲存當牽涉
    79. // 以下事件 (新增是必需的):
    80. // 1: 每次成功交易之後
    81. // 2: 每次成功販賣之後
    82. // 4: 每次關閉倉庫/工會倉庫之後
    83. // 8: 在 生成/回復 寵物
    84. // 16: 成功發送有附件郵件之後
    85. // 32: 提供提交拍賣之後
    86. // 64: 成功得到/刪除/完成任務之後
    87. // 128: After every bank transaction (deposit/withdraw)
    88. // NOTE: These settings decrease the chance of dupes/lost items when there's a
    89. // server crash at the expense of increasing the map/char server lag. If your
    90. // server rarely crashes, but experiences interserver lag, you may want to set
    91. // these off.
    92. save_settings: 255

    93. // 當玩家登陸的時候,將自動顯示的當日信息
    94. motd_txt: conf/motd.txt

    95. // 當管理員使用 @help @help2 @h @charhelp指令時,輸出的幫助檔案名
    96. help_txt: conf/help.txt
    97. help2_txt: conf/help2.txt
    98. charhelp_txt: conf/charhelp.txt

    99. // 地圖啟用配置檔案位置
    100. import: conf/maps_athena.conf

    101. import: conf/import/map_conf.txt
    複製代碼
    inter _athena
    1. // Athena InterServer configuration.
    2. // Contains settings shared/used by more than 1 server.

    3. // Options for both versions

    4. // 是否紀錄登入紀錄? (1為開啟,0為關閉)
    5. log_inter: 1

    6. // 儲存紀錄的檔案名稱
    7. inter_log_filename: log/inter.log

    8. // 組隊時經驗值分享的等級差距
    9. party_share_level: 10

    10. // SQL version options only

    11. // 這裡可以設定您的MYSQL資料庫的編碼
    12. // (MySQL 的版本至少要4.1以上)
    13. default_codepage: big5


    14. // 對於需設置的IP來說, 在Linux系統下面,建議你使用localhost 而不是127.0.0.1
    15. // 在Windows系統下,你需要使用 127.0.0.1  如果你遇到了下面的錯誤提示
    16. // "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
    17. // 你必須使用127.0.0.1,而不是localhost

    18. // Global SQL settings
    19. // overridden by local settings when the hostname is defined there
    20. // (currently only the login-server reads/obeys these settings)
    21. sql.db_hostname: 127.0.0.1
    22. sql.db_port: 3306
    23. sql.db_username: matt0705
    24. sql.db_password: 2233
    25. sql.db_database: ragnarok
    26. sql.codepage:

    27. // MySQL Character SQL server
    28. char_server_ip: 127.0.0.1
    29. char_server_port: 3306
    30. char_server_id: matt0705
    31. char_server_pw: 2233
    32. char_server_db: ragnarok

    33. // MySQL Map SQL Server
    34. map_server_ip: 127.0.0.1
    35. map_server_port: 3306
    36. map_server_id: matt0705
    37. map_server_pw: 2233
    38. map_server_db: ragnarok

    39. // MySQL Log SQL Database
    40. log_db_ip: 127.0.0.1
    41. log_db_port: 3306
    42. log_db_id: matt0705
    43. log_db_pw: 2233
    44. log_db_db: logs
    45. log_codepage: big5
    46. log_login_db: loginlog

    47. // MySQL 重新連接次數設置
    48. // 重新連接並不能消除連接斷開時的無法保存與讀取的現象
    49. // 即便服務器不關閉,
    50. // 若玩家離線時MySQL連接尚未恢復,MYSQL斷開後到離線時的數據仍無法保存
    51. // 因此不建議設置無限次連接,以免玩家白辛苦。
    52. // 當設置100時,接受100次諸如玩家的連接請求,或玩家離線數據保存請求後,
    53. // MySQL仍未恢復,則服務器自動關閉
    54. // -1: 無次數限制
    55. mysql_reconnect_type: 2
    56. mysql_reconnect_count: 1

    57. // 如果你對資料庫不瞭解,請不要更改以下參數
    58. // 以下參數僅僅為開發人員和對資料庫瞭解並想進行資料庫規劃
    59. // 的人員準備的 [CLOWNISIUS]

    60. // 所有 MySQL 資料庫表格名稱

    61. // Char 數據庫表格
    62. char_db: char
    63. hotkey_db: hotkey
    64. scdata_db: sc_data
    65. cart_db: cart_inventory
    66. inventory_db: inventory
    67. charlog_db: charlog
    68. storage_db: storage
    69. reg_db: global_reg_value
    70. skill_db: skill
    71. interlog_db: interlog
    72. memo_db: memo
    73. guild_db: guild
    74. guild_alliance_db: guild_alliance
    75. guild_castle_db: guild_castle
    76. guild_expulsion_db: guild_expulsion
    77. guild_member_db: guild_member
    78. guild_skill_db: guild_skill
    79. guild_position_db: guild_position
    80. guild_storage_db: guild_storage
    81. party_db: party
    82. pet_db: pet
    83. friend_db: friends
    84. mail_db: mail
    85. auction_db: auction
    86. quest_db: quest
    87. homunculus_db: homunculus
    88. skill_homunculus_db: skill_homunculus
    89. mercenary_db: mercenary
    90. mercenary_owner_db: mercenary_owner
    91. elemental_db: elemental
    92. ragsrvinfo_db: ragsrvinfo
    93. skillcooldown_db: skillcooldown
    94. bonus_script_db: bonus_script

    95. // Map 資料庫表格
    96. item_db_db: item_db
    97. item_db_re_db: item_db_re
    98. item_db2_db: item_db2
    99. //item_db2_db: item_db2_re
    100. item_cash_db_db: item_cash_db
    101. item_cash_db2_db: item_cash_db2
    102. mob_db_db: mob_db
    103. mob_db_re_db: mob_db_re
    104. mob_db2_db: mob_db2
    105. //mob_db2_db: mob_db2_re
    106. mob_skill_db_db: mob_skill_db
    107. mob_skill_db_re_db: mob_skill_db_re
    108. mob_skill_db2_db: mob_skill_db2
    109. //mob_skill_db2_db: mob_skill_db2_re
    110. mapreg_db: mapreg

    111. //使用 SQL 格式的 item_db 與 mob_db 嗎?
    112. use_sql_db: no

    113. import: conf/import/inter_conf.txt
    複製代碼
    回復

    使用道具 舉報

  • TA的每日心情
    慵懶
    2018-2-12 10:16 PM
  • 簽到天數: 316 天

    連續簽到: 1 天

    [LV.8]以壇為家I

    發表於 2016-3-7 15:34:51 | 顯示全部樓層
    開DMZ試試看
    回復 支持 反對

    使用道具 舉報

  • TA的每日心情
    慵懶
    2016-4-26 08:55 PM
  • 簽到天數: 40 天

    連續簽到: 1 天

    [LV.5]常住居民I

     樓主| 發表於 2016-3-7 23:48:20 | 顯示全部樓層
    Residue 發表於 2016-3-7 03:34 PM
    開DMZ試試看

    我有試過~謝謝

    後來我去申請固定IP,然後嘗試在開,結果成功了,好像是因為IP不穩定,用固定IP才不會跳出錯誤。

    回復 支持 反對

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 註冊

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2024-4-26 12:17 AM , Processed in 0.045994 second(s), 19 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回復 返回頂部 返回列表