how to limit network player

I make TCG. and there should be 2 players in game.

So I want to limit players Only two.

I made network using master server.

How can I do this??

Here is the doc.

When you call InitializeServer, put 2 as number of connections.

See, while initializing the server you may try to limit the players depending upon your choice like one of friend above said put 2 or any no. of players you want while initializing. Hope this would work out well.
Click here