Page 1 of 1

login server and domain

Posted: Sun Feb 24, 2013 4:02 pm
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?

Re: login server and domain

Posted: Mon Feb 25, 2013 12:38 am
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);

Re: login server and domain

Posted: Mon Feb 25, 2013 8:35 am
by Nemesiz
Ok. But does l2 client support/understand domain names?

Re: login server and domain

Posted: Mon Feb 25, 2013 8:08 pm
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

Re: login server and domain

Posted: Tue Feb 26, 2013 5:34 am
by Nemesiz
Sad. But maybe it is possible to send multiple IP address ?

Re: login server and domain

Posted: Tue Feb 26, 2013 2:57 pm
by UnAfraid
Multiple ips but you must send only one maybe at random.
Are you trying to re-invent Round Robin in l2j? :mrgreen:

Re: login server and domain

Posted: Tue Feb 26, 2013 7:05 pm
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.

Re: login server and domain

Posted: Tue Feb 26, 2013 11:09 pm
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..

Re: login server and domain

Posted: Wed Feb 27, 2013 5:28 am
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.

Re: login server and domain

Posted: Mon Apr 22, 2013 8:18 pm
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.

Re: login server and domain

Posted: Tue Apr 23, 2013 8:25 am
by Nemesiz
Ups. I didn't checked usesInternalIP(). Now i see how its works.