UPDATE: THIS IS A SIGNED APPLET
So, I have an applet, which during initialization, it will try to connect to the server ip. something like
handler = new SocketHandler("xxx.xxx.xxx.xx", 5000);
The server is located in the united states. and I’ve been testing that it works fine (applet will load correctly) if the client is from United States.
but if client open the site from other country, the applet failed to load. it seems like it can’t connect to server or something. Is there anyone know what’s the problem or how to solve it. Do I need to use different IP address or something for international use?
UPDATE: Will there be anyway to increase the timeout connection? another thing that happen is that if I used slower connection, the java console with say timeout socket connection
Non-trusted Applet can connect only to server it was downloaded from for security reasons. So, check your java console. Probably you will find security exception there.
Other possible problem is that there is a firewall between your server and client.
BTW may I ask you why are you using TCP sockets for negotiations between applet and server? Why not web service, e.g. RESTful API over HTTP? At least this solves problems of firewall: if your applet was successfully downloaded using HTTP it will successfully talk to server using the same protocol.