Frost wrote:Others can log on when they connect to 192.168.0.105, but you get stuck at "connecting to character server?"
That's correct. They get in the game, can register accounts, create a character and start leveling up, while I get to watch...
I get stuck using both 'localhost' and '192.168.0.105'.
Here is a paste of the output from starting the server:
http://paste.opensuse.org/f94b7ae3
Frost wrote:If all three servers are running (the fact that you started them doesn't mean they successfully loaded and connected to each other properly), then try verifying the connection (maybe there's a firewall rule?) manually:
"telnet 192.168.0.105 5122" and
"telnet 192.168.0.105 6122"
Those will either connect, get refused, or eventually time out. Connection indicates the server is running and reachable, and we need to look at configs. Refused means the server is not running and is probably not fully configured. Time out means there's something blocking your connection, presumably an iptables firewall rule.
I ran these and here is the output... Looks like a timeout! I get the same timeout when changing the ip to 'localhost'.
Code: Select all
saultdon@indigenis:~/Development/git/mana> telnet 192.168.0.105 5122
Trying 192.168.0.105...
Connected to 192.168.0.105.
Escape character is '^]'.
Connection closed by foreign host.
saultdon@indigenis:~/Development/git/mana> telnet 192.168.0.105 6122
Trying 192.168.0.105...
Connected to 192.168.0.105.
Escape character is '^]'.
Connection closed by foreign host.
saultdon@indigenis:~/Development/git/mana> telnet 192.168.0.105 6901
Trying 192.168.0.105...
Connected to 192.168.0.105.
Escape character is '^]'.
Connection closed by foreign host.
Below is what the server terminal says in response to those telnet pings:
Code: Select all
Session #6 timed out <- this is telnet ping for port 5122, next timeout is for port 6122
Session #6 timed out
Connection of the GM (level:99) account 'SaultDon' accepted. <- this is me trying to login, next two lines...
LAN test (result): LAN source.
Account Logged On; Account ID: 0 (GM level 99). <- this is where my screen gets stuck at "Connecting to character server..."
Session #5 timed out <- this is telnet pinging 6901
Connection of the account 'Quaid' accepted. <- successful login/logout of user Quaid, how come he's so special...
LAN test (result): WAN source.
Account Logged On; Account ID: 2000000.
Character selection 'Quaid' (account: 2000000, slot: 0) [192.168.0.101]
--Send IP of map-server. LAN test (result): WAN source.
From queue index 0: recalling packet version 1
Connection accepted: Character 'Quaid' (account: 2000000).
Player [Quaid] has logged off your server.
Frost wrote:Only with great hackery could you accept connections on two different interfaces (127.0.0.1 is on 'lo0' and 192.168.0.105 is on 'eth0') to the same server, and I strongly suggest you don't pursue that option. Fortunately, there should be no need to.
I don't know what this means... I followed the walkthrough from
http://wiki.themanaworld.org/index.php/ ... a_on_Linux and thought that following those steps would allow me to connect to this server from localhost by default?
Like I said, I know nothing really about this, other than it says to fill out this IP there and forward ports on your firewall. The fact that everyone else can connect means that for me it is a firewall issue?
I read under "General Configuration:
If you are just going to use the server yourself you can enter 127.0.0.1 as the value for all IP addresses. Also, if you have no clue about what ports are or which you will be using, leave the default values as they are.
Isn't that suppose to allow me access using 'localhost' as the IP from the login screen?
File contents:
login_local.conf
Code: Select all
// Athena Login Server local configuration file.
// Port to bind Login Server to (always binds to all IP addresses)
login_port: 6901
// Whether remote administration is enabled or disabled (1 for enabled, 0 for disabled)
admin_state: 1
// Administrative password, used by ladmin (perl software) to connect remotely to server.
// NOTICE: If you enable remote administration, you should change its value for security
admin_pass: password
// Indicate the IP that the server accepts for remote administration.
// put: 'all', or 'xxx.xxx.' (begin of an ip finished by '.' or a complete ip),
// or a network and its mask (example: '123.456.789.012/24' or '123.456.789.012/255.255.255.0')
// or 'clear' to suppress previous parameter (use it in import file mainly)
// Add as many IP's as you wish.
ladminallowip: all
// Gamemaster password, used with the @gm command to obtain GM commands (level of gm set with level_new_gm parameter).
// NOTICE: You should also change this one.
gm_pass: password
// Update host
// Tells the client that an alternative updatehost is available if the client
// supports this. If left out nothing will be sent. max length 127.
update_host: http://updates.themanaworld.org/
char_local.conf
Code: Select all
// Athena Character local configuration file.
// Server Communication username and password.
userid: SaultDon
passwd: password
// Server name, no more than 19 characters
server_name: Camerons Mana World
// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
wisp_server_name: Server
// Login Server IP
login_ip:127.0.0.1
// Login Server Port
login_port: 6901
// Character Server IP
char_ip:192.168.0.105
// Character Server Port
char_port: 6122
map_local.conf
Code: Select all
// eAthena Map-Server local Configuration File
// Interserver communication passwords, set in account.txt (or equiv.)
userid: SaultDon
passwd: password
// Character Server IP
char_ip:127.0.0.1
// Character Server Port
char_port: 6122
// Map Server IP
map_ip:192.168.0.105
// Map Server Port
map_port: 5122
account.txt
Code: Select all
// Accounts file: here are saved all information about the accounts.
// Structure: ID, account name, password, last login time, sex, # of logins, state, email, error message for state 7, validity time, last (accepted) login ip, memo field, ban timestamp, repeated(register text, register value)
// Some explanations:
// account name : between 4 to 23 char for a normal account (standard client can't send less than 4 char).
// account password: between 4 to 23 char
// sex : M or F for normal accounts, S for server accounts
// state : 0: account is ok, 1 to 256: error code of packet 0x006a + 1
// email : between 3 to 39 char (a@a.com is like no email)
// error message : text for the state 7: 'Your are Prohibited to login until <text>'. Max 19 char
// valitidy time : 0: unlimited account, <other value>: date calculated by addition of 1/1/1970 + value (number of seconds since the 1/1/1970)
// memo field : max 254 char
// ban time : 0: no ban, <other value>: banned until the date: date calculated by addition of 1/1/1970 + value (number of seconds since the 1/1/1970)
0 SaultDon !:@jJ6$7b6982832306db0bf3902ec1 2012-04-22 18:15:14.792 S 712 0 a@a.com - 0 127.0.0.1 ! 0
1 s2 !GxFKW$0f35a34708d00827ab2b3d7a - S 1 0 a@a.com - 0 - ! 0
2 s3 !kDVCx$b0edf0b7eb6106165625adea - S 1 0 a@a.com - 0 - ! 0
3 s4 !xjTn5$9bf58a699321f245c6988891 - S 0 0 a@a.com - 0 - ! 0
4 s5 !QmYlk$463294e54560ce9e81937c8a - S 0 0 a@a.com - 0 - ! 0
2000000 Quaid !_4{AN$babf83248a6ab274a4dda0f7 2012-04-22 07:23:08.739 M 2 0 a@a.com - 0 192.168.0.101 ! 0
2000001 %newid%
gm_account.txt