Page 1 of 1

4 subnet and One server. (need help)

Posted: Sun Feb 21, 2010 10:59 pm
by iratushka
The essence of this there are 4 subnets
First 192.0.0.0 - 192.255.255.255
second 10.0.0.0 - 10.255.255.255
third 195.0.0.0 - 195.255.255.255
Fourth 220.0.0.0 - 220.255.255.255

There one physical server with 4 network cards in each card stuck cable from different subnets.

There should be opportunity to play players from all subnets on a single game server, that is, in a single game world.

Computers with different subnets can not see each other.

In Aion it is done quite simply in a file ipconfig.xml:

Code: Select all

 <ipconfig default="127.0.0.1">     <iprange min="10.0.0.0" max="10.255.255.255" address="10.0.0.0"/>     <iprange min="172.16.0.0" max="172.31.255.255" address="172.16.0.0"/>     <iprange min="192.168.0.0" max="192.168.255.255" address="192.168.0.0"/></ipconfig> 
and the number of subnets can be set to infinity. The essence of this when a client with a subnet 10.0.0.0 connect to login server, then login the server it passes ip 10.0.0.0, if the client connect to login server from subnet 172.16.0.0 login server then it sends ip 172.16.0.0, etc.

In the server Lineage I was able to register only 2 species of this subnet External and Enternal but what about the rest of the subnets?

If there are people who know how it can be done please share your thoughts and ideas. Maybe I missed chegoto?

Please forgive me for my bad english :(

Re: 4 subnet and One server. (need help)

Posted: Mon Feb 22, 2010 8:36 am
by _DS_
Use search, it was already discussed.
No matter to do something needed for 1-2 server admins, they can make it by self.

Re: 4 subnet and One server. (need help)

Posted: Mon Feb 22, 2010 9:04 am
by iratushka
Perhaps because of the fact that my English is very bad I can not properly formulate the query (

Excuse me, could you help me and give a link to the discussion and solution of this problem?

Thank you very much in advance.

Re: 4 subnet and One server. (need help)

Posted: Mon Feb 22, 2010 9:34 am
by _DS_
I already post part of code from my LS here: viewtopic.php?f=80&t=14388

Re: 4 subnet and One server. (need help)

Posted: Thu Feb 25, 2010 7:12 pm
by iratushka
_DS_ wrote:I already post part of code from my LS here: viewtopic.php?f=80&t=14388
I can not understand how to use your example code LS.
If you do not make it more difficult, could you give a detailed example of use is possible even in the file .patch with comments.

P.S. Huge request developers to implement support for multiple subnets, similar to as described in my first post
of this topic, because many people have this problem.

Thank you in advance for your help.

Re: 4 subnet and One server. (need help)

Posted: Thu Feb 25, 2010 9:10 pm
by _DS_
ServerList.java:

Code: Select all

			if (gsi.getStatus() == ServerStatus.STATUS_GM_ONLY && client.getAccessLevel() > 0)			{				// Server is GM-Only but you've got GM Status				addServer(client.getServerAddress(), gsi.getPort(), gsi.isPvp(), gsi.isTestServer(), gsi.getCurrentPlayerCount(), gsi.getMaxPlayers(), gsi.isShowingBrackets(), gsi.isShowingClock(), gsi.getStatus(), gsi.getId());			}			else if (gsi.getStatus() != ServerStatus.STATUS_GM_ONLY)			{				// Server is not GM-Only				addServer(client.getServerAddress(), gsi.getPort(), gsi.isPvp(), gsi.isTestServer(), gsi.getCurrentPlayerCount(), gsi.getMaxPlayers(), gsi.isShowingBrackets(), gsi.isShowingClock(), gsi.getStatus(), gsi.getId());			}			else			{				// Server's GM-Only and you've got no GM-Status				addServer(client.getServerAddress(), gsi.getPort(), gsi.isPvp(), gsi.isTestServer(), gsi.getCurrentPlayerCount(), gsi.getMaxPlayers(), gsi.isShowingBrackets(), gsi.isShowingClock(), ServerStatus.STATUS_DOWN, gsi.getId());			} 
For the function getServerAddress() use previous topic.