Paul Clapham wrote:Applets aren't allowed to connect to any server other than the one they were loaded from, unless they are signed. Your code appears to be trying to connect to a socket. That's most likely the problem.
I can see that causing a problem in the future, if I were to try to deploy this so that others can log into my chat server, but right now this panel is trying to connect to a server on the same network card (same computer, even). Would that still happen?
Paul Clapham wrote:I said "the same server it was loaded from"; "server" in that phrase refers to a piece of software. Connecting to a different server on the same server constitutes connecting to a different server.
And if you're asking if that was actually the problem, you should be able to look at the Java console and see the error message which is thrown when you fail to connect to the server.
I see. Where can I get more details on "signing" the applet or server so I can run a chat program?
I guess I was not looking at the java console. I was looking at the web developer error console.