Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:31:22+00:00 2026-06-02T06:31:22+00:00

I have Chat Client Server Application, which we are scaling up. so I need

  • 0

I have Chat Client Server Application, which we are scaling up. so I need to do interserver communication between two chat servers.

Problem is: Suppose there are two servers A and B. now Suppose client
C1 is TCP Connected with Server A and Client c2 is TCP connected with
Server B.
Then problem is: as a same appication client C1 and c2 should be able to identifty each other as logged in and available online, but
that is not happening becase there is no inter server
communication.

Possible solution no 1 is : Log in server A and Server B into each
other using TCP connection. Here i can forward the login XML
message(String) and DataInputStream to other server through the
TCP connection. so every login is transfered to the other server so
that every client is accessible to each server and Client C1 can see
Client C2 as logged in(online) and vice versa.

Problem with Solution 1 is: Suppose now client C1 can see Client C2 as
available online and Client C1 sends message to Client C2. what will
happen is Server A Will try to write to DatainputStream for the client
C2 which is established on Server B and not on Server A. here is the
problem the code will break here and Server A will not be able to send
messages to Client C2.

Any inputs will be appreciated .

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:31:24+00:00Added an answer on June 2, 2026 at 6:31 am

    You could take a look on how the IRC servers implements such kind of functionality. I believe that you just need to write another server which will handle your servers as the clients and request to them in order to find the concrete user.

    https://www.rfc-editor.org/rfc/rfc2810

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Have a scenario of chat application. A server and two client. Since I'm
I am working on a mini-project which consists of doing a client-server chat application.
I'm working on chat application. The underlying server uses Node.js and the client/server communication
I have a client interested in a real time chat application for a SharePoint
I am developing an application in asp.net mvc where i need to have Chat
I have developed a basic Chat application in Java. It consists of a server
I've written a small web application which is basically a JQuery powered chat client
suppose if i want to develop a windows chat application then a chat server
Helloes good people of Stack Overflow, I have a .NET client-server application running with
I have written a UDP client server chat, I am able to communicate to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.