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 6938891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:33:00+00:00 2026-05-27T12:33:00+00:00

Reinstating this question with a bounty! I need an example that stays online ,

  • 0

Reinstating this question with a bounty! I need an example that stays online, like a real instant messenger! It needs to always be ready to receive or send a message to an arbitrary address over an arbitrary port, using TCP. The program must not quit after sending/receiving a message.

Bounty goes to whoever can give the best example of a real, usable instant messenger.


Looking online, all resources I found are either useless tutorials, dead threads, dead tutorials, ancient examples, or tell the programmer to use external APIs. How can I create a basic instant messenger from the ground up, only using Java SE?

There must be a way to do this, and some sample code would be appreciated. It only needs to perform the simplest tasks: Check if a compatible client is online on another computer (IP will be provided by the user) and send a TCP packet to that client, which will receive and display its contents.

  • 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-05-27T12:33:00+00:00Added an answer on May 27, 2026 at 12:33 pm

    When this question was first asked and answered back in 2011, it was simply “Looking online, all resources I found are either useless
    tutorials, dead threads, or tell the programmer to use external
    APIs.”. The provided links below met the criteria at the time. Further discussion follows in the comments.

    First few Google results for “java socket chat“:

    • http://cs.lmu.edu/~ray/notes/javanetexamples/
    • simple chatting program in java usings socket class
    • http://pirate.shu.edu/~wachsmut/Teaching/CSAS2214/Virtual/Lectures/chat-client-server.html
    • http://www.cise.ufl.edu/~amyles/tutorials/tcpchat/
    • http://ashishmyles.com/tutorials/tcpchat/index.html
      • Internet Archive link to fix missing Java source file downloads: https://web.archive.org/web/20150623102646/http://ashishmyles.com/tutorials/tcpchat/index.html

    Or from “java 8 chat client“:

    • https://gist.github.com/alex-zykov/b4052e3c1b6891081897

    Many, many results following in the search. Pick one that suits your needs. You can even modify the Google search to only show results from the past year, if you wish.

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

Sidebar

Related Questions

I have an issue that seems to be identical to this question . I
This is a total dah question but I hope somebody can help me out.
This is a very basic question. I feel kind of silly asking about it
I have two already-existing tables which look (in part) roughly like this: CREATE TABLE
This is the error Dependency Walker gives me on an executable that I am
I have a question about enterprise apps for the iPhone. A client would like
I understand this question may be quickly flagged as a duplicate of many other
This seems like it can be a recent problem since there are new versions
I read an answer to a question on Stack Overflow that contained the following
I have an iPhone app that's been in development for about 2 weeks. We

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.