• 0
Sign in to follow this  
rafoka

rAthena supports multiple interface listening ?

Question

Hello, I've a dedicated server running rAthena. My server have 5 different IPs (and interfaces, eth0 ... eth4) and I'm trying to support connections from all these IPs (listening all IPs), because sometimes a player have a better connection from eth0 than eth4 (I know, it's weird, but I'm pretty sure about this).

 

So, is possible to listen all interfaces ?

 

login_athena.conf:

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

 

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

// 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: wan ip eth0

// Character Server Port
char_port: 6121 

 

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

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

// Map Server Port
map_port: 5121

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

I don't think this is possible, because a listener can only bind to one ip adress.

Share this post


Link to post
Share on other sites

Hi rafoka,

 

Maybe try using 0.0.0.0 as the IP? To be honest, I'm not sure if listening to multiple interfaces is even possible; but 0.0.0.0 *should* allow it to listen to all IP's/interfaces.

Share this post


Link to post
Share on other sites

I'll try 0.0.0.0...

Hi rafoka,

This should explain it; http://www.cyberciti.biz/faq/linux-unix-osx-bsd-windows-0-0-0-0-network-address/

Thank you,

 

I readed some about it, but I think that rAthena still doesn't support to bind (listen) multiple interfaces (maybe because it's only useful in very few cases, like me). Sad :/ 

Edited by rafoka

Share this post


Link to post
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.

Loading...
Sign in to follow this