login server and domain

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

login server and domain

Post by Nemesiz »

Hi,
I was looking some information about domain in server address but I couldn't find. So my question is: does login server report to client the server list with domain name instead of IP?
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: login server and domain

Post by UnAfraid »

com.l2jserver.loginserver.network.serverpackets.ServerList.write()

Code: Select all

            writeC(server._ip[0] & 0xff);            writeC(server._ip[1] & 0xff);            writeC(server._ip[2] & 0xff);            writeC(server._ip[3] & 0xff);
Image
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

Re: login server and domain

Post by Nemesiz »

Ok. But does l2 client support/understand domain names?
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: login server and domain

Post by UnAfraid »

Sadly no you could make login server to resolve the domain before sending it to the client but not to send it as hostname
Image
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

Re: login server and domain

Post by Nemesiz »

Sad. But maybe it is possible to send multiple IP address ?
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: login server and domain

Post by UnAfraid »

Multiple ips but you must send only one maybe at random.
Are you trying to re-invent Round Robin in l2j? :mrgreen:
Image
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

Re: login server and domain

Post by Nemesiz »

I`m thinking theoretically. Some of closed source l2j GS have internal and external IP settings and both are send to l2 client. So its very interesting of L2 client limits.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: login server and domain

Post by UnAfraid »

It exists in l2j since years you can use domain but login server will resolve the domain as IP and then will send it to the client.
So its the same..
Image
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

Re: login server and domain

Post by Nemesiz »

I already got it about LS and IP. But it can be done by sending all IP address assigned to domain if only L2 client understand this way.
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

Re: login server and domain

Post by Nemesiz »

I`m trying to understand internal/external IP settings. As in code:

Code: Select all

 // Server is not GM-OnlyaddServer(client.usesInternalIP() ? gsi.getInternalHost() : gsi.getExternalHost(), gsi.getPort(), gsi.isPvp(), gsi.isTestServer(), gsi.getCurrentPlayerCount(), gsi.getMaxPlayers(), gsi.isShowingBrackets(), gsi.isShowingClock(), gsi.getStatus(), gsi.getId()); 
client.usesInternalIP() ? gsi.getInternalHost() : gsi.getExternalHost()

AS I see if internal is empty external is used. So way I have to set 2 settings then they means the same ? I thought both internal and external IPs are send to client.
Nemesiz
Posts: 10
Joined: Fri May 13, 2011 1:20 pm

Re: login server and domain

Post by Nemesiz »

Ups. I didn't checked usesInternalIP(). Now i see how its works.
Post Reply