4 subnet and One server. (need help)

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
iratushka
Posts: 7
Joined: Tue Jul 28, 2009 9:27 am

4 subnet and One server. (need help)

Post 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 :(
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

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

Post 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.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
iratushka
Posts: 7
Joined: Tue Jul 28, 2009 9:27 am

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

Post 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.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

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

Post by _DS_ »

I already post part of code from my LS here: viewtopic.php?f=80&t=14388
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
iratushka
Posts: 7
Joined: Tue Jul 28, 2009 9:27 am

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

Post 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.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

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

Post 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.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply