Can't Connect to a SocketWhenever I attempt to make a socket connection, I get an exception. Most of the time, the reason that you can't connect to a port is either there is another application listening on that port that doesn't understand your protocol, or the application that you are trying to connect to isn't running. Can't Get HTTPS ConnectionWhenever I try to connect to a site using the HTTPS protocol, I get a MalformedURLException. This is a common problem that comes up regularly on the newsgroups. You need to be using the Java Secure Socket Extension library and make sure that the JAR files for JSSE are properly installed in your systemCLASSPATH. Using JSSE Takes ForeverWhen using JSSE, it seems to take forever for the connection to take place. Unfortunately that's the normal behavior right now. What is taking so long is the handshaking that is going on between the client and server. They are trying to negotiate the algorithm that they will use to exchange information. Hopefully, it will speed up with newer versions of JSSE, but it will always have some overhead. That's the price we pay for the additional security. |