Jump to content
  • 0

Failed to connect to server - I know, sorry =(


Saita

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/24/21
  • Last Seen:  

I know this is a very common issue but I can't figured it out.

I am running rAthena on linux and trying to login through LAN from Virtual Box with windows.

I managed to login, but after a few seconds I get the message in the client: Failed to connect to server 

Linux log:
 

[Info]: Loaded guild castle (42 - guild 0)
[Info]: Loaded guild castle (43 - guild 0)
[Status]: Map-server connected to char-server 'Server'.
[Status]: Map Server is now online.
[Info]: Received Fame List of '0' characters.
[Status]: Received '44' guild castles from char-server.
[Status]: Received '4' clans from char-server.
[Status]: Request for connection of teste (ip: 127.0.0.1)
[Notice]: Authentication accepted (account: teste, id: 1, ip: 127.0.0.1)
[Status]: Connection of the account 'teste' accepted.
[Info]: Closed connection from '127.0.0.1'.

 

Server changes:

diff --git a/conf/char_athena.conf b/conf/char_athena.conf
index d448d5fb6..066f48552 100644
--- a/conf/char_athena.conf
+++ b/conf/char_athena.conf
@@ -5,8 +5,8 @@
 // only as information/reference.
 
 // Server Communication username and password.
-userid: s1
-passwd: p1
+userid: teste
+passwd: teste
 
 // Server name, use alternative character such as ASCII 160 for spaces.
 // NOTE: Do not use spaces or any of these characters which are not allowed in
diff --git a/conf/inter_athena.conf b/conf/inter_athena.conf
index e60be22ef..f70d26cef 100644
--- a/conf/inter_athena.conf
+++ b/conf/inter_athena.conf
@@ -28,39 +28,39 @@ party_share_level: 15
 // MySQL Login server
 login_server_ip: 127.0.0.1
 login_server_port: 3306
-login_server_id: ragnarok
-login_server_pw: ragnarok
-login_server_db: ragnarok
+login_server_id: rathena
+login_server_pw: changeme
+login_server_db: rathena
 login_codepage:
 login_case_sensitive: no
 
 ipban_db_ip: 127.0.0.1
 ipban_db_port: 3306
-ipban_db_id: ragnarok
-ipban_db_pw: ragnarok
-ipban_db_db: ragnarok
+ipban_db_id: rathena
+ipban_db_pw: changeme
+ipban_db_db: rathena
 ipban_codepage:
 
 // MySQL Character server
 char_server_ip: 127.0.0.1
 char_server_port: 3306
-char_server_id: ragnarok
-char_server_pw: ragnarok
-char_server_db: ragnarok
+char_server_id: rathena
+char_server_pw: changeme
+char_server_db: rathena
 
 // MySQL Map Server
 map_server_ip: 127.0.0.1
 map_server_port: 3306
-map_server_id: ragnarok
-map_server_pw: ragnarok
-map_server_db: ragnarok
+map_server_id: rathena
+map_server_pw: changeme
+map_server_db: rathena
 
 // MySQL Log Database
 log_db_ip: 127.0.0.1
 log_db_port: 3306
-log_db_id: ragnarok
-log_db_pw: ragnarok
-log_db_db: ragnarok
+log_db_id: rathena
+log_db_pw: changeme
+log_db_db: rathena
 log_codepage:
 log_login_db: loginlog
 
diff --git a/conf/login_athena.conf b/conf/login_athena.conf
index 719d366ea..d87dea0d3 100644
--- a/conf/login_athena.conf
+++ b/conf/login_athena.conf
@@ -53,7 +53,7 @@ console: off
 
 // Can you use _M/_F to make new accounts on the server?
 // Note: This only works if client side password encryption is not enabled.
-new_account: no
+new_account: yes
 
 //If new_account is enabled, minimum length to userid and passwords should be 4?
 //Must be 'Yes' unless your client uses both 'Disable 4 LetterUserID/Password' Diffs
diff --git a/conf/map_athena.conf b/conf/map_athena.conf
index 092e9a7d2..e8dd166ea 100644
--- a/conf/map_athena.conf
+++ b/conf/map_athena.conf
@@ -10,8 +10,8 @@
 //                     Configuration Info
 //--------------------------------------------------------------
 // Interserver communication passwords, set in account.txt (or equiv.)
-userid: s1
-passwd: p1
+userid: teste
+passwd: teste
 
 // Character Server IP
 // The map server connects to the character server using this IP address.
diff --git a/src/config/packets.hpp b/src/config/packets.hpp
index 91e6d37ee..dca68f612 100644
--- a/src/config/packets.hpp
+++ b/src/config/packets.hpp
@@ -45,7 +45,7 @@
 	/// Comment to disable the official packet obfuscation support.
 	/// This requires PACKETVER 2011-08-17 or newer.
 	#ifndef PACKET_OBFUSCATION
-		#define PACKET_OBFUSCATION
+		//#define PACKET_OBFUSCATION
 
 		// Define these inside src/custom/defines_pre.hpp or src/custom/defines_post.hpp
 		//#define PACKET_OBFUSCATION_KEY1 <key1>
diff --git a/src/custom/defines_pre.hpp b/src/custom/defines_pre.hpp
index 93b1780dc..6316d2023 100644
--- a/src/custom/defines_pre.hpp
+++ b/src/custom/defines_pre.hpp
@@ -3,7 +3,7 @@
 
 #ifndef CONFIG_CUSTOM_DEFINES_PRE_HPP
 #define CONFIG_CUSTOM_DEFINES_PRE_HPP
-
+#define PACKETVER 20180621 
 /**
  * rAthena configuration file (http://rathena.org)
  * For detailed guidance on these check http://rathena.org/wiki/SRC/config/


clientinfo.xml:

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
	<desc>Ragnarok Client Information</desc>
	<servicetype>korea</servicetype>
	<servertype>primary</servertype>
	<connection>
		<display>Local</display>
      		<address>10.0.2.2</address>
      		<port>6900</port>
      		<version>55</version>
      		<langtype>1</langtype>
		<registrationweb>www.ragnarok.com</registrationweb>
		<loading>
			<image>loading00.jpg</image>
			<image>loading01.jpg</image>
			<image>loading02.jpg</image>
			<image>loading03.jpg</image>
			<image>loading04.jpg</image>
			<image>loading05.jpg</image>
			<image>loading06.jpg</image>
		</loading>
   	</connection>
</clientinfo>

IMPORTANT: I am running RO from a guest VM and that 10.0.2.2 ip hits the host's localhost. I validate that by using telnet from guest to host and I can connect to the login-server port (6900) and char-server port (6121).

 

Client executable: 2018-06-21aRagexe_patched.exe (I pached with NEMO):
 

9 Disable 1rag1 type parameters (Recommended)
13 Disable Ragexe Filename Check (Recommended)
23 Enable /who command (Recommended)
24 Fix Camera Angles (Recommended)
290 Hide build info in client (Recommended)
34 Enable /showname (Recommended)
291 Hide packets from peek (Recommended)
35 Read Data Folder First
36 Read msgstringtable.txt (Recommended)
38 Remove Gravity Ads (Recommended)
39 Remove Gravity Logo (Recommended)
41 Disable Nagle Algorithm (Recommended)
44 Translate Client (Recommended)
46 Use Normal Guild Brackets (Recommended)
48 Use Plain Text Descriptions (Recommended)
49 Enable Multiple GRFs (Recommended)
53 Use Ascii on All LangTypes (Recommended)
64 @ Bug Fix (Recommended)
65 Load Custom lua file instead of iteminfo*.lub (Recommended)
71 Ignore Resource Errors
72 Ignore Missing Palette Error
73 Remove Hourly Announce (Recommended)
338 Additional client validation (Recommended)
84 Remove Serial Display (Recommended)
90 Enable DNS Support (Recommended)
213 Disable Help Message on Login (Recommended)
231 Remove hardcoded address/port (Recommended)
232 Restore old login packet (Recommended)

 

rathena-error2.png

rathena-error1.png

rathena-error3.png

Edited by Saita
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

Which means you configure incorrectly.

Did you open 3 ports? if not:
Run this command:

firewall-cmd --permanent --add-port=6900/tcp
firewall-cmd --permanent --add-port=6121/tcp
firewall-cmd --permanent --add-port=5121/tcp


Make sure you put your proper IP_VIRTUAL (Oracle Virtual Box)
Example: 10.0.2.2

char_athena.conf
map_athena.conf

 

Edited by Royr
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  01/09/22
  • Last Seen:  

i know this is a very very old stuff but I wanted to add that if you dont put the exposed IP in the configuration client wont connect.

I had to do that here (instead of 127.0.01 put the IP your host can finally access to your guest)

char_athena.conf

// Character Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
char_ip: <Virtual machine IP>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...