I built a chat application that uses sockets and TCP/IP protocol. The client is an applet. The problem is I cannot connect the applet client with the desktop server application. If I run the applet inside the applet viewer in NetBeans it works perfectly. I even tried the applet loaded from an online server... it just can't connect. It seems to me to be a security limitation but I don't know what to do...

How can I make possible socket communication from the applet?