title: How to define the communication between groups of clients and the server?
body: <p>I'm writing an Android app that communicate with a server through sockets. The app is a multiplayer game which send messages (Strings in Java) as JSON through those sockets.
  To initiate a game, I create a "Group" object which contains "player" objects. The group has a <code>ServerSocket</code> object which is moved on to the "player", and each device communicate with its server instance "player". The computation and communication between the devices is done in the "Group" object.</p>
  
  <p>My problem is that for creating a "Group" I need a <code>ServerSocket</code> which runs on a port. So as I see it, for each group I need a different port. The number of ports is limited in the server and I believe working with ports is not the best way.</p>
  
  <p>Is there any other way to implement the communcation described above?</p>