Jump to content
  • 0

Probem on Connection to Server with WAN IP


Tepoo

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  02/06/12
  • Last Seen:  

Hey Guys,

i got today my rEathena Server running. i tested it with the 127.0.0.1 style and it worked fine. i was able to login, play, kill monsters, blablabla.

now i wanted to be friendly and give the ip to my friends.

but when i put in my login informations, i see the server select screen, and when i select my server ill get after some time a Disconnected from Server.

i changed the following things in my server:

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: xxx.xxx.xxx.xxx <-- my wanip

map_athena.conf

// 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: xxx.xxx.xxx.xxx <-- my wanip

subnet_athena.conf

subnet: 255.0.0.0:xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx <-- my wanip to times

my server only shows this informations:

[06/Feb 17:48][Notice]: Authentication accepted (account: XXaccnameXX, id: 2000000,ip: xxx.xxx.xxx.xxx)

[06/Feb 17:48][status]: Connection of the GM (level:99) account 'XXaccnameXX' accepted.

[06/Feb 17:48][info]: Closed connection from 'xxx.xxx.xxx.xxx'.

could someone help me? i dont realy know whats wrong with it o.o

greetings

Tepoo

Edited by Tepoo
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

login_ip:
char_ip:
map_ip:

must be WAN IP

Subnet use is

255.255.255.0:WAN_IP:WAN_IP

Edited by KeiKun
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  02/04/12
  • Last Seen:  

already checked your clientinfo.xml? in your data?

in the case of a home server, which by the way I use to test build with friends, I use a program called "hamachi" ...

the only thing you do is modify the clientinfo.xml as I say, adding the ip that you used to connect to your server, as to what that you exhibited, it should look like (in my opinion):

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

// 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: xxx.xxx.xxx.xxx <-- you wanip

----------------------------------------

map_eathena.conf:

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

// 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: xxx.xxx.xxx.xxx <-- you wanip

and this is optional (no influence, you can leave as they wish, respecting the format):

subnet_athena.conf

subnet: 255.0.0.0:xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx

Greetings!

Edited by Okumura
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  02/06/12
  • Last Seen:  

 login_ip: char_ip: map_ip: 

must be WAN IP Subnet use is

255.255.255.0:WAN_IP:WAN_IP

hey, not every ip have to be wanip. there is no sense that the servers himself connect over the wan ip when they are placed on the same machine :-) in asm routines a localhost call is faster then over a network ip.

i got my mistake now. i releted the // on bind_ip :-)

i placed them again and wolla it works.

here is my configuration for letting run the servers on one machine and let people connect over the internet to the server. i hope it helps people who have the same problem ^^ (but it was a mistake of myself, so i think not many people will have that problem)


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

// The map 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

// Character Server Port
char_port: 6121

// 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: xxx.xxx.xxx.xxx <-- my wan ip

// Map Server Port
map_port: 5121

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

// The character 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

// 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: xxx.xxx.xxx.xxx <-- my wanip

// Character Server Port
char_port: 6121

Edited by Tepoo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

have you even tried it

~________~

how the hell will you connect yourself to the login server

if its 127.0.0.1 (localhost)

your only distributing map server ( you can't login an account using map server only )

~______~ even with char_server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  02/06/12
  • Last Seen:  

The Configuration i posted works well.

i am playing with friends over the internet on my server.

i dont want to be rude, or sounds egoistic, but the explenation of the values are quit easy to understand.

i respect that you take the time to read "need help" threads. but you should increase your knowledge about the configuation abit.

not every configuration who works is a good one.


// 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 //This ip is for the communication between the servers,
//nothing for the connection between client and server.
//if my servers are on the same machine, why should i use a wan ip for that?

// The map 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

// Character Server Port
char_port: 6121

// 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: xxx.xxx.xxx.xxx <-- my wan ip //this is for the connection from the client to the server,
//throught this ip the server knows how to forward the client to the correct server

// Map Server Port
map_port: 5121

// 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 //This ip is for the communication between the servers,
//nothing for the connection between client and server.
//if my servers are on the same machine, why should i use a wan ip for that?

// The character 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

// 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: xxx.xxx.xxx.xxx <-- my wanip //this is for the connection from the client to the server,
//throught this ip the server knows how to forward the client to the correct server

// Character Server Port
char_port: 6121

Greetings

Tepoo

Edited by Tepoo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

is your internet ip static or dynamic?

Edited by Fibonacci
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  02/06/12
  • Last Seen:  

its static, why do you ask? do you wanna prevent that i write today again ^^

dont worry, i used eathena some years ago a long time, my knowledge have to be refreshed, but its not at 0 :-D

greetings

Tepoo

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   35
  • Joined:  12/13/11
  • Last Seen:  

where exactly are your friends playing from?

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