Results 1 to 2 of 2
  1. #1
    osval is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default Exception in thread "main" Connection timed out

    I have implemented a TCP server in java. I'm using the ServerSocket. And listening to connections using the accept() method.
    I always get an
    Java Code:
    Exception in thread "main" Connection timed out
    at the client side. This occurs after numerous connections..

    can you help me?

  2. #2
    levent Guest


    If you are sure that the server is still running when you are trying to connect from your timed out client, then make sure that you are not doing any time consuming task in your connection acceptance method of your server socket.

Similar Threads

  1. Replies: 1
    Last Post: 08-07-2007, 08:10 AM
  2. Replies: 2
    Last Post: 08-01-2007, 06:26 AM
  3. Replies: 1
    Last Post: 07-31-2007, 02:54 PM
  4. Replies: 1
    Last Post: 07-25-2007, 11:55 PM
  5. Replies: 1
    Last Post: 07-16-2007, 07:32 AM

Posting Permissions

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