• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved 2 IPS same ports and 2 TFS servers

HalfAway

Thanatos
Joined
Sep 3, 2011
Messages
3,801
Solutions
27
Reaction score
2,616
Location
Sweden
GitHub
HalfAway
Hey, I just ran into a "smaller" problem while trying to host 2 TFS on same machine with diffrent ips but same ports.
Have never been working with network interfaces so I'm noob at this, also googled but I couldn't manage to make it work.

OS: Ubuntu
IP #1: 37.XX.XX.XX
IP #2: 94.XX.XX.XX
TFS 1.0

I'm pretty sure I need to edit network interfaces so here is the result of my edit.
Code:
auto eth0
iface eth0 inet static
address 37.XX.XX.XX
netmask 255.255.255.0
network 37.XX.XX.0
broadcast 37.XX.XX.255
gateway 37.XX.XX.254

auto eth0:2
iface eth0:2 inet static
address 94.XX.XX.XX
netmask 255.255.255.0
broadcast 37.XX.XX.255
network 37.XX.XX.0
gateway 37.XX.XX.254

With the network interface above I get this error:
Code:
RTNETLINK answers: File exists
Failed to bring up eth0:2.

I got both servers open and I can connect perfectly to TFS#1 (37.XX.XX.XX) and when I try to connect to TFS #2 (94.XX.XX.XX) I connect to TFS #1.

Anyone knows how to setup 2 diffrent IPs to work with same ports.
If you help me solve this, I'll pay you.

Thanks in advance,
HalfAway
 
Last edited:
in your config.lua change this for true/yes:

bindOnlyGlobalAddress = "no"
 
in your config.lua change this for true/yes:

bindOnlyGlobalAddress = "no"
Oh sorry I forgot to write that, I got that in both configs.

TFS #1
Code:
ip = "37.XX.XX.XX"
bindOnlyGlobalAddress = "yes"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171

TFS #2
Code:
ip = "94.XX.XX.XX"
bindOnlyGlobalAddress = "yes"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
 
Instead of running everything from one OS, get KVM or OVZ and assign the failovers to the VMs/Containers. I use proxmox to make managing easier. I dont know if you are using an OVH server(I am so this may not apply to you)but this guide is very useful: http://help.ovh.co.uk/BridgeClient

Let me know if you need help with this stuff.
 
Instead of running everything from one OS, get KVM or OVZ and assign the failovers to the VMs/Containers. I use proxmox to make managing easier. I dont know if you are using an OVH server(I am so this may not apply to you)but this guide is very useful: http://help.ovh.co.uk/BridgeClient

Let me know if you need help with this stuff.


Actually I'm using OVH, I'll look that up, thanks!
 
Actually I'm using OVH, I'll look that up, thanks!

Install Proxmox from the manager and use KVM(easier to work with the networks of KVM imo) or install CentOS and OpenVZ and use containers.

Much better organization this way(you might need to get another ip though) :P
 
Back
Top