The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

ServerSocket Freezing !

Posted by Linden on August 14, 2001 at 9:52 AM

Hi im new to socket programming and I am programming a simple Server/Client programs to transfer IOStreams between. The trouble I am having though is When I call

ServerSocket serverSocket = new ServerSocket(port);
serverSocket.accept();

my program just freezes!! I heard this happens when u try make multiple connections to the same port but im sure this port is not open already on my system and nothing else is trying to connect to it. Please help !



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us