This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
An applet is only allowed to make network connections to the host where it came from. So if the applet is hosted at www.xyz.com, and the chat server is at www.xxyyzz.com, the connection is not permitted. That's one of the consequences of applets living in a "sandbox" inside the browser. Have a look at the Applet FAQ for ways to get around those restrictions.