I would like to create multiple sockets between all users. 
So how can i pass key and ID such as the server is divided in seprated windows.
Thank You.
You do exactly that: you [can] pass around keys and make them show up in separate windows.
From the way you've phrased your question, you appear new to streams/sockets. I'd recommend you first start with one socket and make a chat application so you can get a feel for how to develop protocols which let you do that.
SocketRocket (iOS) : How to identify whom user are chatting with another?