A crazy idea that might just work!

I’ve just come up with this crazy idea for networking. I don’t see why it wouldn’t work. but you can tell me.

So imagine a game is played on a website. The website contains two instances of Unity. One instance is set as a client (C). The other one is set as a server (S). So if we have 5 players:

S1 S2 S3 S4 S5
| \ | \ | \ | \ |
C1 C2 C3 C4 C5

The server and client on the same webpage can communicate with other, maybe via javascript.

Also, each server can send messages to another player’s client.

In this way all 5 players are connected in a kind networked ring.

Now here’s the clever bit. If one player drops out, all the players are still connected! They can reconnect themselves without calling the Master Server.

You can make it even more secure by have 3 instances of unity on the same webpage. One server and 2 clients. Each server can then talk to the 2 clients on it’s webpage plus 2 other clients from different players.

What do you think? :eyes:

Would you like to achieve that with the Unity Webplayer?
If so, that won’t work at all because the Webplayer is not executed on the server at all.

No all the instances are on webpages. They just act as servers.

Could you explain what the actual benefit would be?
It sounds pretty complex to keep this thing synchronized, e.g. all the player data. Did you consider the latency?