matt070516 發表於 2016-3-7 13:20:06

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

本帖最後由 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:// Athena Character configuration file.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// 是否允許建立新角色
// 現在已確實支援
char_new: 1

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

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

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

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

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

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

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

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

// Size for the fame-lists
fame_list_alchemist: 10
fame_list_blacksmith: 10
fame_list_taekwon: 10

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

// 未知的角色名稱
unknown_char_name: Unknown

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

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

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

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

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

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

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

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

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

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

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

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

//===================================
// Addon system
//===================================
// Character moving
// NOTE: Requires client 2011-09-28aragexeRE or newer.
// Allows users to move their characters between slots.
// Default: yes
char_move_enabled: yes

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

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

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

import: conf/import/char_conf.txt
map _athena//--------------------------------------------------------------
//rAthena Map-Server Configuration File
//--------------------------------------------------------------

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

import: conf/import/map_conf.txt
inter _athena// Athena InterServer configuration.
// Contains settings shared/used by more than 1 server.

// Options for both versions

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

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

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

// SQL version options only

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


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

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

// MySQL Character SQL server
char_server_ip: 127.0.0.1
char_server_port: 3306
char_server_id: matt0705
char_server_pw: 2233
char_server_db: ragnarok

// MySQL Map SQL Server
map_server_ip: 127.0.0.1
map_server_port: 3306
map_server_id: matt0705
map_server_pw: 2233
map_server_db: ragnarok

// MySQL Log SQL Database
log_db_ip: 127.0.0.1
log_db_port: 3306
log_db_id: matt0705
log_db_pw: 2233
log_db_db: logs
log_codepage: big5
log_login_db: loginlog

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

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

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

// Char 數據庫表格
char_db: char
hotkey_db: hotkey
scdata_db: sc_data
cart_db: cart_inventory
inventory_db: inventory
charlog_db: charlog
storage_db: storage
reg_db: global_reg_value
skill_db: skill
interlog_db: interlog
memo_db: memo
guild_db: guild
guild_alliance_db: guild_alliance
guild_castle_db: guild_castle
guild_expulsion_db: guild_expulsion
guild_member_db: guild_member
guild_skill_db: guild_skill
guild_position_db: guild_position
guild_storage_db: guild_storage
party_db: party
pet_db: pet
friend_db: friends
mail_db: mail
auction_db: auction
quest_db: quest
homunculus_db: homunculus
skill_homunculus_db: skill_homunculus
mercenary_db: mercenary
mercenary_owner_db: mercenary_owner
elemental_db: elemental
ragsrvinfo_db: ragsrvinfo
skillcooldown_db: skillcooldown
bonus_script_db: bonus_script

// Map 資料庫表格
item_db_db: item_db
item_db_re_db: item_db_re
item_db2_db: item_db2
//item_db2_db: item_db2_re
item_cash_db_db: item_cash_db
item_cash_db2_db: item_cash_db2
mob_db_db: mob_db
mob_db_re_db: mob_db_re
mob_db2_db: mob_db2
//mob_db2_db: mob_db2_re
mob_skill_db_db: mob_skill_db
mob_skill_db_re_db: mob_skill_db_re
mob_skill_db2_db: mob_skill_db2
//mob_skill_db2_db: mob_skill_db2_re
mapreg_db: mapreg

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

import: conf/import/inter_conf.txt

Residue 發表於 2016-3-7 15:34:51

開DMZ試試看

matt070516 發表於 2016-3-7 23:48:20

Residue 發表於 2016-3-7 03:34 PM static/image/common/back.gif
開DMZ試試看

我有試過~謝謝

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

頁: [1]
查看完整版本: 連線socket #2 error 10060,有參閱相關設定