Jump to content
  • 0

[Info] Closed connection from IP instant upon logging in


TemplarOfTheMist

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  06/05/12
  • Last Seen:  

My server just got transferred from one VPS to another, meaning it worked before,

I haven't changed client type/version, so basically the mmo.h stays the same and the packetver as well.

But when I start up the server on the new VPS and logged in, I can see the server selection screen which is

ServerRO (0) then it would just display Failed to Connect to Server after a few seconds.

Here is what is happening on the console:

404074_492972787394485_200569073_n.jpg

Any ideas? Thanks in advance.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Change your IP in char+login+map IP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  06/05/12
  • Last Seen:  

Tried changing it with the VPS' IP and 127.0.0.1, same results.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Which one did you use, WAN IP or LAN IP?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/03/12
  • Last Seen:  

I'm getting that same problem here, and i've tried doing it with the local IP on all of them and it didn't help.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Mickosis,

The issue you are having is because of improper configuration in your 'login_athena.conf', 'char_athena.conf', and 'map_athena.conf'. It is suggested that you never use the bind ip function; so please make sure you comment out those lines with // in front of the bind entry.

Now for the char_ip, login_ip, and map_ip; you would need to place your VPS's IP and not localhost or 127.0.0.1. The issue you are having is the fact that your login-server_sql is directing traffic to '127.0.0.1', which is to the player's own computer... and he is not the host, the VPS is the host.

You should be able to connect just fine after you have entered the proper values; enjoy and good luck!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Asura, there's a config like this:

on char_athena.conf:

// 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: Your.wan.ip.address

I guess, it's better to use 127.0.0.1 from the login_ip, to restrict outer's connection to the VPS IP and bruteforcing port 6900 right?

anyhow, it's just this:

// The character server connects to the login server using this IP address.

CMIIW

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Asura, there's a config like this:

on char_athena.conf:

// 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: Your.wan.ip.address

I guess, it's better to use 127.0.0.1 from the login_ip, to restrict outer's connection to the VPS IP and bruteforcing port 6900 right?

anyhow, it's just this:

// The character server connects to the login server using this IP address.

CMIIW

Hi Winz,

Unfortunately, that would not work out properly. Because the player has to connect to the char server as well; and the login server would direct the traffic to the IP of '127.0.0.1', which is the wrong IP address.

Ultimately, you'd have to use your VPS IP as the values for the login_ip/char_ip/map_ip in the conf files.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

oh, okay. thanks for the explaination, Asura.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  6
  • Reputation:   0
  • Joined:  10/09/12
  • Last Seen:  

do I need to remove the "//" in bind-ip? or only in char_ip and map_ip?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

// means the line won't be executed by the server, it's call a comment line.

So if you want to enable your bind_ip, then remove the preceding //

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

do I need to remove the "//" in bind-ip? or only in char_ip and map_ip?

Hi powerboxx,

Unless you are trying to use different IP's for the different char/map/login servers, you should not be using the bind function. If you are using 1 IP to host all servers; it's better to leave it commented with // in front of the bind_ip value.

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