12-19-2012, 10:08 AM
Hi all, this topic is beeing asked for so long that its not even funny anymore. So i come here today to expose one way to do this, although im sure it will not be what everyone wants, but works!!!
What 98% of the users have at home is a modem/router doing NAT to every computer at home. What does this means? Your ISP provides you with 1 public address, wich is assigned to the router, and then the router distributes the signal to the private IPs, wich permits to have more then 1 computer connected to the internet. While this is a good way to keep your data private, its not the best to build a server. In this case, you cannot just portforward or dmz your host, cause that will make that your players can only connect to the LoginServer and cannot connect to GameServer. So you need a public address assigned to the GameServer, to achive this i tryed every single possible way i could imagine. I reached a point that i have no other way, then to disable NAT and connect the host directly to the internet, and that way have a public ip addressed assign directly to the host.
So to achive this, if you have more then 1 computer connected to the internet, you will have to have only 1 computer connected.
As every router is different i cannot post a direct tutorial on how to do, so i will just give a few instruccions, and you will have to search for the info related to your router.
First call your ISP and ask for the info to connect via PPPoE. They will give you a username and a password.
The you go to your router, under WAN settings and you choose Bridge Mode! Now, with a network cable, connect your router with your linux host. Go edit Network Connections, and configure Dsl Connection. Enter the data your ISP gave you, and apply. Connect to DSL connection and open a terminal. Write ifconfig and you will see a new connection probably named PPP0. And you see your public ip there. Put that ip in Loginserver and Gameserver and thats it! your game is online... Dont forget the firewall rules, you need to have your login and gameserver ports opened. I hope this helps some of you!
Cheers


thanks