Chating between two client

Hi All,

Two user can chat between each other in client server architecture.

Architecture look like this:

Client1<–>gateway<–>SEVER<–>gateway<–>Client2

1: Client1 can ping to server ip, then login successfull.

2: Client2 also can ping to server ip, then login successfull.

3: but Client1 & Client2 is not ping each other

4: then client1 & client2 can chat???

Open fire/sparweb how to work, it’s chating direct Ethernet to Ethernet.

Or

Client1 send the request to server then server send the response to Client2 ?

Please help me

Thanks

All communication in xmpp (except for file transfers) is client-server-client based. No direct chat.