0

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..

1
  • This might sound stupid but do you actually have a deployed chat server at the external ip address? Commented May 6, 2011 at 9:29

2 Answers 2

1

Is the server running on that remote machine? Is the port open in the firewall?

Sign up to request clarification or add additional context in comments.

1 Comment

yes, the server running on this remote machine, and yes the port is open in the firewall
0

Try to netcat to the remote host. If you get an connection the example maybe wrong. If not, you cannot connect to that host: host not exists, not listen on that port, port is filtered, etc, etc.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.