login server and domain
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
login server and domain
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?
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?
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
Re: login server and domain
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);
-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
Re: login server and domain
Ok. But does l2 client support/understand domain names?
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
Re: login server and domain
Sadly no you could make login server to resolve the domain before sending it to the client but not to send it as hostname
-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
Re: login server and domain
Sad. But maybe it is possible to send multiple IP address ?
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
Re: login server and domain
Multiple ips but you must send only one maybe at random.
Are you trying to re-invent Round Robin in l2j?
Are you trying to re-invent Round Robin in l2j?

-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
Re: login server and domain
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.
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
Re: login server and domain
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..
So its the same..
-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
Re: login server and domain
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.
-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
Re: login server and domain
I`m trying to understand internal/external IP settings. As in code:
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.
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());
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.
-
- Posts: 10
- Joined: Fri May 13, 2011 1:20 pm
Re: login server and domain
Ups. I didn't checked usesInternalIP(). Now i see how its works.