azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.39k stars 2.55k forks source link

Can we implement two realm lists with the same realmid?Feature: #13568

Closed PkllonG closed 1 year ago

PkllonG commented 1 year ago

Describe your feature request or suggestion in detail

image For example, we have two network IPs, so that both networks can connect to the same server

Describe a possible solution to your feature or suggestion in detail

No response

Additional context

No response

bbwow commented 1 year ago

this is two world, one account characters.

PkllonG commented 1 year ago

@bbwow I have implemented this function

PkllonG commented 1 year ago

image image

PkllonG commented 1 year ago

I can log in to the same server through both networks

yuanf225 commented 1 year ago

What are the benefits of doing this, load balancing and high availability?

noisiver commented 1 year ago

What are the benefits of doing this, load balancing and high availability?

I'm curious about that too. I would like to say, judging by the little information available, that it lets you have the same characters on multiple realms?

PkllonG commented 1 year ago

Allow multiple networks to connect to the same realm For example, Server 1 has multiple networks (China, USA, Britain,...) that can be connected to Server 1. Players can use the optimal network lines to connect

noisiver commented 1 year ago

I still don't see the point, I'm afraid. If it all runs through the same authserver and sends the data to the same worldserver - or at least the same network server-side - what would it change?

yuanf225 commented 1 year ago

I understand his idea, it is for separate access for users of different operators or regions

yuanf225 commented 1 year ago

It would be great if HA could be implemented by pointing two world servers to one realmid, which could reduce server pressure

noisiver commented 1 year ago

Wouldn't that mean that if people from different regions want to play together, they can't?

High availability would more or less require battle.net to be implemented.

PkllonG commented 1 year ago

This function refers to the server with multiple IPs, and users can choose the best (Network operator)IP to connect to the world server

noisiver commented 1 year ago

I see. Thank you for clearing that up for me!

Kitzunu commented 1 year ago

I still dont understand. You are still creating different realms, why would you use the same ID for them?

Nyeriah commented 1 year ago

Different authservers directing to the same worldserver?

IntelligentQuantum commented 1 year ago

This function refers to the server with multiple IPs, and users can choose the best (Network operator)IP to connect to the world server

You can run another authserver on another vps without creating a new realm Note: Just authserver

Kitzunu commented 1 year ago

But why. You will still have the worldserver by itself, so it wont gain any improvements?

IntelligentQuantum commented 1 year ago

It affects the player's ping

Nyeriah commented 1 year ago

That's curious, afaik authserver only handles the authentication process and after that is forward to the worldserver you're connecting to it directly, so I wonder how does it affect ping.

IntelligentQuantum commented 1 year ago

I don't know, but it works. In 2019, I had a pvp server (pvpland.ir :cry:) that had 300 players and the foreign players were not happy with the ping, so I bought a German VPS and run the authserver and connected the VPS together, so the players' ping went down.

I want to do this with my friend's server in a few days. I will tell you the result

noisiver commented 1 year ago

I don't get it either. If the worldserver, the same one that the player connects to every time, doesn't move but the authserver does - logically it should have no effect whatsoever. It must be some kind of magic.

PkllonG commented 1 year ago

image image Player1 and player2 can be in the same world server, and they can use different networks to connect to the server

ChibaPet commented 1 year ago

This appears to be closed now, but the obvious use I see, that hasn't been mentioned, is that this would allow for a worldserver to run behind a NAT without requiring hairpinning for internal clients to connect. The notion of running another authserver is probably sufficient for this, and has merits of its own.

vrozaksen commented 1 year ago

Hi! This thread helped me setup same server for 2 different networks. First one for local network and second one for VPN (just making safe semi-public server using Wireguard VPN for people to access my server) :))

EDIT!!!! Oh i see it's not implemented... This sucks