Hello, I'm just a newbie in socket programming. I made a simple socket program which accepts clients which is a chat program. But my problem is that when i execute the applet which is in the client side, i get the error java.net.ConnectException: Connection refused. I already changed the java.policy file permissions but it still doesn't work. Can anybody hellp me with this? I really need to fix the program. Thanks.
Yes, that's part of the code. What i tried was i just tested the chat client locally in my pc and i can connect to it. But the problem is when run the client applet in other pc and connect to this local JBoss server, i get an error: connection refused
i can't ping the main IP of the Linux Server. The scenario is this == I have a client server program using sockets in java. I deployed the .war file in the Linux server. The server program opens a port to listen for connections then accepts incoming connections. When i execute the Chat server program, it works fine. But when i run the chat client program, i always get Time out on linux server. And in the Web Browser, i get this error java.security.AccessControlException: access denied (java.net.SocketPermission ip ort connect,resolve). Please help me