- Home /
Other
Clients are not disconnected when Master Server goes shut down
I have make a chat module (using RPC) and setup our own MasterServer and use it.
I'm doing the following steps::
Suppose "system-1" is master server
- Open our chat application and start the server(system-1),connect to it. (on system-2)
- Open our chat application and connect to system-2. (on system-3)
<<=====master server shows the log of connection of users(system-2,3)====>>
Now, if I power-off/shut-down our master server(system-1) then users(system-1,2) are not disconnected, they are still able to chat with each other, how is this possible?
Note: I am testing it on LAN, i.e. system-1,2,3 are connected via LAN.
Please tell me that, what is going behind that?
Thank You!
Answer by Landern · Nov 28, 2012 at 02:55 PM
First line from the master server documentation:
The Master Server is a meeting place that puts game instances in touch with the player clients who want to connect to them.
When the two players connect to the master server, they get the registered game types that match the requested type, when a client connects, they are connecting to the registered system creating a direct link between the registered game host and client, so they can chat away.
In your case, when 2 and 3 are chatting it up, they don't care about the master server, system 2 and 3 are directly talking to each other and the master server is doing whatever the master server was meant to do.
That is my understanding at least.
Thanks for your reply!
I don't know what is happening behind that, but I think it not make a sense, lets my server is in USA, and one client connected from U$$anonymous$$ and second is connected from India, now if we remove the mid point i.e. meeting place or master server then how is it possible.?
One more thing, clients were connected to same master(eg. IP = 127.0.0.0) server and same port number(eg. 12500) to chat, if they are directly connected to each other and there is no participation of master server after connection then what is the meaning of port number and all?
can anybody explain it clearly? Your answer will be appreciable . :
So to be clear - a master server provides just a way of 2 or more players finding each other. When those players wish to communicate then they get a client/server connection to each other.
The master server acts as a broker to provide information about which connections are available. Clients register with the master server and that then publishes their own connection info. When connecting the master server is not involved, it has just provided a well known address on which to find information about available connections.
since this is answered, please accept the answer above and have this question closed
Follow this Question
Related Questions
Spawning Clients 1 Answer
Network Instaniate,Lag,Bullet Prefab 1 Answer
network.RPC behavior 1 Answer
RPC only called in editor 0 Answers