Results 1 to 3 of 3
  1. #1
    java.newbie is offline Member
    Join Date
    May 2011
    Posts
    1
    Rep Power
    0

    Default Peer to peer text chat

    I am just experimenting with Java (I am much more familiar with c++). I am trying to build a peer to peer system that my friends and I can use to communicate simple text chat. I already have the list of pre-determined IP addresses (I don't need to be able to locate hosts or anything).

    What I need:
    - open up a port on computer
    - open up a socket to same port number on xx.xx.xx.xx
    - simple consle based text chat (one peer to one peer at a time. don't need group chat.)

    Think you could help me out anyone?

    Thanks a lot!

  2. #2
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    392
    Rep Power
    4

    Default

    Socket (Java Platform SE 6) should have much of what you want.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,331
    Rep Power
    25

    Default

    Also do a search Here or with Google on code samples that use Socket

Similar Threads

  1. Replies: 4
    Last Post: 03-31-2011, 10:37 PM
  2. Discovery of peer in p2p network
    By dogukan in forum Networking
    Replies: 1
    Last Post: 04-19-2010, 03:55 PM
  3. How to make a peer-to-peer application
    By enrico96 in forum Advanced Java
    Replies: 1
    Last Post: 03-15-2010, 10:06 PM
  4. Peer To Peer Voice and Video Streaming
    By hardeepbhullar in forum Networking
    Replies: 0
    Last Post: 10-31-2009, 12:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •