How can my applet open a socket connection to a machine other than the web server?

John Zukowski

Untrusted applets can only communicate back to the server from which they came (the host that delivered the .class files). If you need to communicate with another server, you'll either have to sign your applet (and the user will have to trust you), or setup a proxy server on your web server to facility the communication between hosts.