Jump to content

[HELP] Connection refused


Recommended Posts

My game was going well. I upgraded the "source" file to gcc9. Successfully created "game" and "db". But it gave such an error while opening channels.

 

ch1 syser

SYSERR: Sep 19 11:15:58 :: pid_init:
Start of pid: 885

SYSERR: Sep 19 11:15:58 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:01 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:04 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:07 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:10 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:13 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:16 :: socket_connect: HOST localhost:15000, could not connect.

 

CH1 syslog


Sep 19 11:25:12 :: SYSTEM: Trying to connect to localhost:15000
SYSERR: Sep 19 11:25:12 :: socket_connect: HOST localhost:15000, could not connect.
Sep 19 11:25:12 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
Sep 19 11:25:13 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
SYSERR: Sep 19 11:25:14 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
Sep 19 11:25:14 :: <shutdown> Starting...
Sep 19 11:25:14 :: <shutdown> Destroying CArenaManager...
Sep 19 11:25:14 :: ARENA: ArenaMap will be destroy. mapIndex(112)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: <shutdown> Destroying COXEventManager...
Sep 19 11:25:14 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
Sep 19 11:25:14 :: <shutdown> Disabling signal timer...
Sep 19 11:25:14 :: <shutdown> Shutting down CHARACTER_MANAGER...
Sep 19 11:25:14 :: <shutdown> Shutting down ITEM_MANAGER...
Sep 19 11:25:14 :: <shutdown> Flushing db_clientdesc...
Sep 19 11:25:14 :: <shutdown> Flushing p2p_manager...
Sep 19 11:25:14 :: <shutdown> Destroying CShopManager...
Sep 19 11:25:14 :: <shutdown> Destroying CHARACTER_MANAGER...
Sep 19 11:25:14 :: <shutdown> Destroying ITEM_MANAGER...
Sep 19 11:25:14 :: <shutdown> Destroying DESC_MANAGER...
Sep 19 11:25:14 :: <shutdown> Destroying quest::CQuestManager...
Sep 19 11:25:14 :: <shutdown> Destroying building::CManager...
Sep 19 11:25:14 :: <shutdown> Flushing TrafficProfiler...
Sep 19 11:25:14 :: <shutdown> Canceling ReloadSpamEvent...
Sep 19 11:25:14 :: <shutdown> regen_free()...
Sep 19 11:25:14 :: <shutdown> Closing sockets...
Sep 19 11:25:14 :: <shutdown> fdwatch_delete()...
Sep 19 11:25:14 :: <shutdown> event_destroy()...
Sep 19 11:25:14 :: <shutdown> CTextFileLoader::DestroySystem()...
Sep 19 11:25:14 :: <shutdown> thecore_destroy()...
SYSERR: Sep 19 11:25:14 :: pid_deinit:
End of pid

DB, syser and not giving syslog

and the strange thing is that when I edit the item_name.txt item_proto.txt in the db, the item_proto does not change in mysql

Link to comment
Share on other sites

41 minutes ago, 123fbalp123fb said:

My game was going well. I upgraded the "source" file to gcc9. Successfully created "game" and "db". But it gave such an error while opening channels.

 

ch1 syser

SYSERR: Sep 19 11:15:58 :: pid_init:
Start of pid: 885

SYSERR: Sep 19 11:15:58 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:01 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:04 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:07 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:10 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:13 :: socket_connect: HOST localhost:15000, could not connect.
SYSERR: Sep 19 11:16:16 :: socket_connect: HOST localhost:15000, could not connect.

 

CH1 syslog


Sep 19 11:25:12 :: SYSTEM: Trying to connect to localhost:15000
SYSERR: Sep 19 11:25:12 :: socket_connect: HOST localhost:15000, could not connect.
Sep 19 11:25:12 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
Sep 19 11:25:13 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
SYSERR: Sep 19 11:25:14 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
Sep 19 11:25:14 :: <shutdown> Starting...
Sep 19 11:25:14 :: <shutdown> Destroying CArenaManager...
Sep 19 11:25:14 :: ARENA: ArenaMap will be destroy. mapIndex(112)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: ARENA: End Duel PID_A(0) vs PID_B(0)
Sep 19 11:25:14 :: <shutdown> Destroying COXEventManager...
Sep 19 11:25:14 :: CLIENT_DESC [db_clientdesc] trying DBPacket() while not connected
Sep 19 11:25:14 :: <shutdown> Disabling signal timer...
Sep 19 11:25:14 :: <shutdown> Shutting down CHARACTER_MANAGER...
Sep 19 11:25:14 :: <shutdown> Shutting down ITEM_MANAGER...
Sep 19 11:25:14 :: <shutdown> Flushing db_clientdesc...
Sep 19 11:25:14 :: <shutdown> Flushing p2p_manager...
Sep 19 11:25:14 :: <shutdown> Destroying CShopManager...
Sep 19 11:25:14 :: <shutdown> Destroying CHARACTER_MANAGER...
Sep 19 11:25:14 :: <shutdown> Destroying ITEM_MANAGER...
Sep 19 11:25:14 :: <shutdown> Destroying DESC_MANAGER...
Sep 19 11:25:14 :: <shutdown> Destroying quest::CQuestManager...
Sep 19 11:25:14 :: <shutdown> Destroying building::CManager...
Sep 19 11:25:14 :: <shutdown> Flushing TrafficProfiler...
Sep 19 11:25:14 :: <shutdown> Canceling ReloadSpamEvent...
Sep 19 11:25:14 :: <shutdown> regen_free()...
Sep 19 11:25:14 :: <shutdown> Closing sockets...
Sep 19 11:25:14 :: <shutdown> fdwatch_delete()...
Sep 19 11:25:14 :: <shutdown> event_destroy()...
Sep 19 11:25:14 :: <shutdown> CTextFileLoader::DestroySystem()...
Sep 19 11:25:14 :: <shutdown> thecore_destroy()...
SYSERR: Sep 19 11:25:14 :: pid_deinit:
End of pid

DB, syser and not giving syslog

and the strange thing is that when I edit the item_name.txt item_proto.txt in the db, the item_proto does not change in mysql

 

If you compiled the game and it gave you a connection error, the safest thing is that you have to change the ip in the config.cpp

 

		In the config.cpp file look for this line "The ip can vary depending on the files, but it almost always starts with 192.

		if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192
		{
      
		Then replace the ip with 999.999 "Example"

		if (!strncmp(netip, "999.999", 7)) // ignore if address is starting with 192
		{

 

Save and compile again. This should solve your problem, I hope I helped you.

Link to comment
Share on other sites

6 minutes ago, Developer1321 said:

 

If you compiled the game and it gave you a connection error, the safest thing is that you have to change the ip in the config.cpp

 

		In the config.cpp file look for this line "The ip can vary depending on the files, but it almost always starts with 192.

		if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192
		{
      
		Then replace the ip with 999.999 "Example"

		if (!strncmp(netip, "999.999", 7)) // ignore if address is starting with 192
		{

 

Save and compile again. This should solve your problem, I hope I helped you.

 

The relevant line in my config.cpp;

		if (!strncmp(netip, "111.111", 7)) // ignore if address is starting with 192

this (netip, "999,999", 7) I will try as

57 minutes ago, Developer1321 said:

 

If you compiled the game and it gave you a connection error, the safest thing is that you have to change the ip in the config.cpp

 

		In the config.cpp file look for this line "The ip can vary depending on the files, but it almost always starts with 192.

		if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192
		{
      
		Then replace the ip with 999.999 "Example"

		if (!strncmp(netip, "999.999", 7)) // ignore if address is starting with 192
		{

 

Save and compile again. This should solve your problem, I hope I helped you.

Unfortunately it still gives the same error. No change 😞

spacer.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

14 minutes ago, Developer1321 said:

Şans eseri db'den geçen bir sistem koyduğunuzda?

No, I didn't add system. just "extern" "cryptopp",
I did the "lzo" library upgrade (gcc9). My game was running fine on freebds9.2. After gcc9 upgrade, I switched to Freebds 11.4 and it gave this error. I didn't add any extra system plugins

I've looked at other threads on the forum; for example
It says change port 15000. I've tried. It didn't happen.
I added BIND_IP and PUBLIC_IP to the CONFIGs and it still didn't work.

Edited by 123fbalp123fb
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      We are looking for a C++ and Python programmer

    2. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    3. 111

      Ulthar SF V2 (TMP4 Base)

    4. 0

      Quest function when 102.kill definition whereabouts help

    5. 5

      [M2 FILTER] Customized Client Filter

    6. 0

      [INGAME] RGB Color on chat broken

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.