i pretty much re-typed the code from the oracle tutorial for sockets, but somehow it's not working.
i ran with
java Server 7
java Client localhost 7
with two consoles open.
i entered an input
string for the Client console, but i'm not getting any echoes back.
i've checked and rechecked but i can't find what's missing.
Client.java
Server.java
the original codes are below:
http://docs.oracle.com/javase/tutorial/networking/sockets/examples/EchoClient.java
http://docs.oracle.com/javase/tutorial/networking/sockets/examples/EchoServer.java