Jump to content
  • 0

Yet another 'Failed to connect to server' thread; no logserv.bat login attempt


Echoes

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

Hello,

I'm currently following this guide to create an offline server

But I'm now faced with another problem, the newbie feared message

image.png.2fee61aaeedb1f5695eb8cbca438f817.png

 

The settings needed at server-side are done, those being:

  • Defined packet version at 'C:\Gravity\rAthena\src\custom\defines_pre.hpp' following https://github.com/rathena/rathena/wiki/connecting
  • My server is reachable by pages like https://www.canyouseeme.org/. Ports open and communication between log-map-char is ok
  • Changed subnet: 255.0.0.0:127.0.0.1:127.0.0.1 to subnet: 255.255.255.0:PUBLIC_IP:PUBLIC_IP at 'C:\Gravity\rAthena\conf\subnet_athena.conf'

 

So, and according to every topic I found about this same issue, I think my problem is solely client-sided, and the main subject may be my 'clientinfo.xml'.

The steps I took to setup my clients were:

  • Download the desired client at http://nemo.herc.ws/downloads/2018-04-18bRagexeRE/ using method number 2
  • Hexing the client with NEMO with the following patches:
    Spoiler
    2 Chat Flood Allow
    8 Custom Window Title
    9 Disable 1rag1 type parameters (Recommended)
    13 Disable Ragexe Filename Check (Recommended)
    14 Disable Hallucination Wavy Screen (Recommended)
    16 Disable Swear Filter
    17 Enable Official Custom Fonts
    18 Skip Service Selection Screen
    19 Enable Title Bar Menu (legacy)
    23 Enable /who command (Recommended)
    24 Fix Camera Angles (Recommended)
    30 Increase Zoom Out 50%
    34 Enable /showname (Recommended)
    35 Read Data Folder First
    36 Read msgstringtable.txt (Recommended)
    38 Remove Gravity Ads (Recommended)
    39 Remove Gravity Logo (Recommended)
    40 Restore Login Window (Recommended)
    41 Disable Nagle Algorithm (Recommended)
    44 Translate Client (Recommended)
    46 Use Normal Guild Brackets (Recommended)
    47 Use Ragnarok Icon
    48 Use Plain Text Descriptions (Recommended)
    49 Enable Multiple GRFs (Recommended)
    50 Skip License Screen
    52 Use Custom Font
    53 Use Ascii on All LangTypes (Recommended)
    61 Disable Packet Encryption
    64 @ Bug Fix (Recommended)
    65 Load Custom lua file instead of iteminfo*.lub (Recommended)
    69 Extend Npc Dialog Box
    71 Ignore Resource Errors
    72 Ignore Missing Palette Error
    73 Remove Hourly Announce (Recommended)
    74 Increase Screenshot Quality
    76 Enforce Official Login Background
    84 Remove Serial Display (Recommended)
    85 Show Cancel To Service Select
    90 Enable DNS Support (Recommended)
    91 Disconnect to Login Window
    96 Remove GM Sprites
    97 Cancel to Login Window (Recommended)
    111 Hide Rec Button
    208 Restore Cash Shop Icon
    213 Disable Help Message on Login (Recommended)
    225 Show Register Button
    229 Enable Emblem hover for BG
    230 Always load Korea ExternalSettings lua file (Recommended)
    233 Hide SNS Button
    240 Load custom ClientInfo file
    242 Disable kRO Site Launch
    257 Use Default Web Browser for <URL>
    259 Set Navigation Button
    260 Set Bank Button
    262 Set Mail Button
    263 Set Achievement Button
    267 Set Attendance Button
    290 Hide build info in client (Recommended)
    291 Hide packets from peek (Recommended)
    310 Set adventurer agency button
    316 Remove Equipment Swap Button
    328 Enable 44.1 kHz Audio Sampling Frequency
    338 Additional client validation (Recommended)
    348 Send client flags to server (Recommended)
    351 Translate arrows buttons text from korean to english
    362 Fixes the Korean Job name issue with LangType (Recommended)
    364 Change default font size for base class of all balloons
    366 Change default font size for class UITransBalloonText
    368 Change default font size for class UICharInfoBalloonText
    398 Hide debugger
    404 Use borderless mode in full screen (Recommended)
    409 Add close button to game window
    427 Check is servertype in xml file was set to correct value (Recommended)
    428 Change names font size
    429 Protect shorten and bold name flags
    430 Draw names with bold or normal font
  • Downloading my data & system using https://github.com/llchrisll/ROenglishRE repository
  • Setting my 'clientinfo.xml':
    Spoiler
    <?xml version="1.0" encoding="euc-kr" ?>
    <clientinfo>
        <desc>Ragnarok Client Information</desc>
        <servicetype>korea</servicetype>
        <servertype>sakray</servertype>
        <connection>
            <display>Server</display>
            <desc>Rates: 12x12x20x</desc>
            <balloon>¡Bienvenidos(as)!</balloon>
            <address>PUBLIC_IP</address>
            <port>6900</port>
            <version>55</version>
            <langtype>1</langtype>
            <registrationweb></registrationweb>
            <yellow>
                <admin>2000000</admin>
            </yellow>
            <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>
                <image>loading07.jpg</image>
                <image>loading08.jpg</image>
                <image>loading09.jpg</image>
                <image>loading10.jpg</image>
            </loading>
        </connection>
    </clientinfo>

     

With all that, I'm suffering of the error 'Failed to connect to server', and my logserv.bat is not even suffering a connection attempt.
image.png.1c3eaffb994b33e3c5c469561fc54f91.png

 

Please, help me fix this problem ?

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Oh I thought you said 127.0.0.1 was work but it wasn't. (Login and enter game)

Then it's client side now.

Can you try this please?

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
	<desc>Ragnarok Client Information</desc>
	<servicetype>thai</servicetype>
	<servertype>primary</servertype>
	<connection>
		<display>TEST</display>
      		<address>127.0.0.1</address>
      		<port>6900</port>
      		<version>55</version>
      		<langtype>5</langtype>
		<registrationweb></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>

 

 

If still not working. Please use client date 20211103 as rAthena standard client date.

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Try revert subnet to default.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

3 minutes ago, Start_ said:

Try revert subnet to default.

Hello and thank you for your reply.

Sadly, doing so did nothing, no attempt to connect to server

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Try select these patch

5 Enable Proxy Support
231 Remove hardcoded address/port (Recommended)
232 Restore old login packet (Recommended)
326 Disable OTP Login Packet (Recommended)
417 Disable password encryption for lang types 4, 7

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

6 minutes ago, Start_ said:

Try select these patch

5 Enable Proxy Support
231 Remove hardcoded address/port (Recommended)
232 Restore old login packet (Recommended)
326 Disable OTP Login Packet (Recommended)
417 Disable password encryption for lang types 4, 7

Hi again,

The only patch I could apply to the client was 'Enable Proxy Support'

  • 'Remove hardcoded address/port (Recommended)' was not found, instead 'Remove Hardcoded HTTP IP' was found but could not patch successfully by error 'Found nothing to patch'
  • 'Restore old login packet (Recommended)' and 'Disable OTP Login Packet (Recommended)' could not be found in available patchs list
  • 'Disable password encryption for lang types 4, 7' could not be found, closest one was 'Disable Packet Encryption'

 

And this patch was futile on attempting to connect to the server

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Are you using your PC to host or rent a server?

If using your own PC please use 127.0.0.1 to enter the game. (Other player keep using that WAN IP)

If using VPS/Other hosting, check the firewall/ports 6900 5121 6121.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

9 minutes ago, Start_ said:

Are you using your PC to host or rent a server?

If using your own PC please use 127.0.0.1 to enter the game. (Other player keep using that WAN IP)

If using VPS/Other hosting, check the firewall/ports 6900 5121 6121.

I'm using my own PC to run it.

Using 127.0.0.1 (also tried with my IPv4) did nothing :c

 

 

Could it have something to do with Packet Obfuscation?

Packet Obfuscation: Enabled. Keys: 0x00000000, 0x00000000, 0x00000000
Edited by Echoes
Packet Obfuscation enabled?
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Did you try 127.0.0.1 for server-side yet? Is it working?

If already tried and it's working on 127.0.0.1.

Then please provide

login_athena

char_athena

map_athena

to investigate.

 

Also the port and firewall are required to work on it too, did you enabled these port?

Edited by Start_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

Just now, Start_ said:

Did you try 127.0.0.1 for server-side yet? Is it working?

Yes, already tried with 127.0.0.1 and the server is working with that IP too

 

Just now, Start_ said:

Also the port and firewall are required to work on it too, did you enabled these port?

Yes, ports 5121, 6121, and 6900 are reachable by the internet (using https://www.canyouseeme.org/)

 

I'm using import files for char and map, those reflect the recent changes suggested by you:

\conf\import\char_conf:

Spoiler
// Server Communication username and password.
userid: s1
passwd: p1

// 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
//       Windows filenames \/:*?"<>|
//       ... or else guild emblems won't work client-side!
server_name: Server

// Wisp name for server: used to send wisp from server to players (between 4 to 23 characters)
wisp_server_name: Ryouta-kun

// Login Server IP
// The character server connects to the login server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
login_ip: 127.0.0.1

// 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: 127.0.0.1

// Set the letters/symbols that you want use with the 'char_name_option' option.
// Note: Don't add spaces unless you mean to add 'space' to the list.
char_name_letters: abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890

// 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: no

 

\conf\import\map_conf.txt:

Spoiler
// Interserver communication passwords, set in account.txt (or equiv.)
userid: s1
passwd: p1

// Character Server IP
// The map server connects to the character server using this IP address.
// NOTE: This is useful when you are running behind a firewall or are on
// a machine with multiple interfaces.
char_ip: 127.0.0.1

// Map Server IP
// The IP address which clients will use to connect.
// Set this to what your server's public IP address is.
map_ip: 127.0.0.1

 

I haven't edited login_athena so I'm pasting the default one, \conf\login_athena.conf:

Spoiler
// Athena Login Server configuration file.
// Translated by Peter Kieser <[email protected]>

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

// The login server listens on the interface with this IP address.
// NOTE: This allows you to run multiple servers on multiple interfaces
// while using the same ports for each server.
//bind_ip: 127.0.0.1
 
// Login Server Port
login_port: 6900

//Time-stamp format which will be printed before all messages.
//Can at most be 20 characters long.
//Common formats:
// %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format)
// %H:%M:%S (hour:minute:second, 24 hour format)
// %d/%b/%Y (day/Month/year)
//For full format information, consult the strftime() manual.
//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: 0

// File path to store the console messages above
console_log_filepath: ./log/login-msg_log.log

//Makes server output more silent by omitting certain types of messages:
//1: Hide Information messages
//2: Hide Status messages
//4: Hide Notice Messages
//8: Hide Warning Messages
//16: Hide Error and SQL Error messages.
//32: Hide Debug Messages
//Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
console_silent: 0

// Console Commands
// Allow for console commands to be used on/off
// This prevents usage of >& log.file
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

//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
new_acc_length_limit: yes

// Account registration flood protection system
// allowed_regs is the number of registrations allowed in time_allowed (in seconds)
allowed_regs: 1
time_allowed: 10

// Log Filename. All operations received by the server are logged in this file. 
login_log_filename: log/login.log

// To log the login server?
// NOTE: The login server needs the login logs to enable dynamic pass failure bans.
log_login: yes

// Indicate how to display date in logs, to players, etc.
date_format: %Y-%m-%d %H:%M:%S

// Required account group id to connect to server.
// -1: disabled
// 0 or more: group id
group_id_to_connect: -1

// Minimum account group id required to connect to server.
// Will not function if group_id_to_connect config is enabled.
// -1: disabled
// 0 or more: group id
min_group_id_to_connect: -1

// Which group (ID) will be denoted as the VIP group?
// Default: 5
vip_group: 5

// How many characters are allowed per account?
// You cannot exceed the limit of MAX_CHARS slots, defined in mmo.hpp, or chars_per_account
// will default to MAX_CHARS.
// 0 will default to the value of MIN_CHARS. (default)
chars_per_account: 0

// Max character limit increase for VIP accounts (0 to disable)
// Increase the value of MAX_CHARS if you want to increase vip_char_increase.
// Note: The amount of VIP characters = MAX_CHARS - chars_per_account.
// Note 2: This setting must be set after chars_per_account.
// -1 will default to MAX_CHAR_VIP (src/config/core.hpp)
vip_char_increase: -1

// Create accounts with limited time?
// -1: new accounts are created with unlimited time (default)
// 0 or more: new accounts automatically expire after the given value, in seconds
start_limited_time: -1

// Store passwords as MD5 hashes instead of plain text?
// NOTE: Will not work with clients that use <passwordencrypt>
use_MD5_passwords: no

// User count colorization on login window (requires PACKETVER >= 20170726)
// Disable colorization and description in general?
usercount_disable: no
// Amount of users that will display in green
usercount_low: 200
// Amount of users that will display in yellow
usercount_medium: 500
// Amount of users that will display in red
usercount_high: 1000

// Ipban features
ipban_enable: yes
// Dynamic password failure ipban system
// Ban user after a number of failed attempts?
ipban_dynamic_pass_failure_ban: yes
// Interval (in minutes) to calculate how many failed attempts.
ipban_dynamic_pass_failure_ban_interval: 5
// Maximum amount of failed attempts before banning.
ipban_dynamic_pass_failure_ban_limit: 7
// Time (in minutes) for ban duration.
ipban_dynamic_pass_failure_ban_duration: 5
// Interval (in seconds) to clean up expired IP bans. 0 = disabled. default = 60.
// NOTE: Even if this is disabled, expired IP bans will be cleaned up on login server start/stop.
// Players will still be able to login if an ipban entry exists but the expiration time has already passed.
ipban_cleanup_interval: 60

// Interval (in minutes) to execute a DNS/IP update. Disabled by default.
// Enable it if your server uses a dynamic IP which changes with time.
//ip_sync_interval: 10

// DNS Blacklist Blocking
// If enabled, each incoming connection will be tested against the blacklists 
// on the specified dnsbl_servers (comma-separated list)
use_dnsbl: no
dnsbl_servers: bl.blocklist.de, socks.dnsbl.sorbs.net
// Here are some free DNS Blacklist Services: http://en.wikipedia.org/wiki/Comparison_of_DNS_blacklists
//==============================================================================
//   dnsbl_servers                 Description
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// bl.blocklist.de                 IP-Addresses who attack other servers/honeypots over SSH, FTP, IMAP, etc.
// ircbl.ahbl.org                  AHBL (open proxies, compromised machines, comment spammers)
// safe.dnsbl.sorbs.net            All zones in dnsbl.sorbs.net except "recent" and "escalations"
// sbl-xbl.spamhaus.org            Spamhaus blacklist (spammers, open proxies)
// socks.dnsbl.sorbs.net           Open SOCKS proxy servers
// tor.ahbl.org                    Current tor relay and exit nodes

// Client MD5 hash check
// If turned on, the login server will check if the client's hash matches
// the value below, and will not connect tampered clients.
// Note: see 'doc/md5_hashcheck.txt' for more details.
client_hash_check: off

// Enable web authentication token system
// This is required for new clients that get data via an additional API over HTTP
use_web_auth_token: yes

// Client MD5 hashes
// The client with the specified hash can be used to log in by players with
// a group_id equal to or greater than the given value.
// If you specify 'disabled' as hash, players with a group_id greater than or
// equal to the given value will be able to log in regardless of hash (and even
// if their client does not send a hash at all.)
// Format: group_id, hash
// Note: see 'doc/md5_hashcheck.txt' for more details.
//client_hash: 0, 113e195e6c051bb1cfb12a644bb084c5
//client_hash: 10, cb1ea78023d337c38e8ba5124e2338ae
//client_hash: 99, disabled

import: conf/inter_athena.conf
import: conf/import/login_conf.txt

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Try change IP directly on char_athena, map_athena

I can't remember but after I tried changing IP in import, it wasn't working to me too.

* Also please try revert those import files to default

Edited by Start_
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

I can assure you those import files are being read correctly, the server reflected the changes made on the IPs accordingly, but will do as you say.

  • Decommented 'login_ip: 127.0.0.1' & 'char_ip: 127.0.0.1' on 'char_athena.conf'
  • Decommented 'char_ip: 127.0.0.1' & 'map_ip: 127.0.0.1' on 'map_athena.conf'

 

Result: still getting 'Failed to connect...' ? and no attempt on logserv.bat
image.png.ceab7a86a8292483b3486d9b7d01e2ba.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

2 minutes ago, Start_ said:

Oh I thought you said 127.0.0.1 was work but it wasn't. (Login and enter game)

Then it's client side now.

Can you try this please?

<?xml version="1.0" encoding="euc-kr" ?>
<clientinfo>
	<desc>Ragnarok Client Information</desc>
	<servicetype>thai</servicetype>
	<servertype>primary</servertype>
	<connection>
		<display>TEST</display>
      		<address>127.0.0.1</address>
      		<port>6900</port>
      		<version>55</version>
      		<langtype>5</langtype>
		<registrationweb></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>

 

 

If still not working. Please use client date 20211103 as rAthena standard client date.

Had to change '<servertype>primary</servertype>' to '<servertype>sakray</servertype>' because the client wasn't opening

It now tries to connect and I'm getting the Unregistered ID error.

Weird.. what is different from my clientinfo?

 

___________________________

EDIT - SOLUTION FOUND

Well, your clientinfo made me question myself about the '<servicetype></servicetype>' part... and in my clientinfo it was 'english'.. which is non-existant nowadays; changed it to 'america' according to the very obvious list found on https://github.com/rathena/rathena/wiki/Clientinfo.xml and now my own clientinfo is working properly.

 

Edited by Echoes
Found the error
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Unregister ID mean you need to register isn't it?

Try

ID: echoes_M

PW: 12341234

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   5
  • Joined:  03/30/13
  • Last Seen:  

33 minutes ago, Start_ said:

Unregister ID mean you need to register isn't it?

Try

ID: echoes_M

PW: 12341234

Yeah, already found the error thanks to your clientinfo ? thank you Start_! I'm very thankful for your time, patience and guidance ?

Thanks for bearing with me

 

 

[*]Aaaand now my client closes before character select ?

 

Well, clientinfo problem solved at least!

 

_______________

EDIT - SOLUTION FOUND ON OFF-TOPIC NEW RECENT PROBLEM[*]

My client was closing without any 'mapserv.bat' error showing; long story short, solution found here!

 

Edited by Echoes
Solution found!
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...