Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Problem in socket programming

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Thanked 0 Times in 0 Posts

    Default Problem in socket programming

    HI everyone,

    I've created a multithreaded server and have accepted the connections from the clients. now wat i want to do is to close the existing socket connection in each thread and create a new socket connection to the client in every thread by using the same server socket. i've tried to do so.. but i get an exception:

    java.net.SocketException: Connection reset

    Somebody help me solve this problem..

    thanks in advance

  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    United Kingdom
    My Mood
    Thanked 293 Times in 226 Posts
    Blog Entries

    Default Re: Problem in socket programming

    Hello sinni,

    Welcome to the Java Programming Forums.

    Please post the code you have written. Include it within the highlight tags (see my signature)
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

Similar Threads

  1. Socket programming something gone wrong
    By ambika.th in forum Java Networking
    Replies: 1
    Last Post: March 6th, 2011, 11:47 AM
  2. [SOLVED] Socket Programming Problem
    By relixus in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 9th, 2010, 10:35 PM
  3. Java socket programming
    By lucy in forum Java Networking
    Replies: 1
    Last Post: April 26th, 2010, 09:13 PM