-1

I followed the example on this link.

It worked pretty well - but it worked like a Chat Room.

I dont know how to just send and get message between just 2 clients.

Can someone give me some advices to do that?

Thank you for reading.

user3688221
  • 87
  • 1
  • 1
  • 7

1 Answers1

2

As far as I know you cant have only clients. You need to have both, a client and a server.

If you are trying to make a chat program with only 2 users, one of the users needs to act as a server and the other as the client. You only need to put a constraint on the server to allow only one client.

dburner
  • 1,007
  • 7
  • 22