i tried this code: http://programming-guides.com/java/tcp-client-server-chat (full example)
and it's working but when i switch the "host" int the client side to an external IP (insted of localhost) it give me this error: "Cannot get IO for connection to.."
i treid to switch the port but it didnt work..