MU Computer Science Java Client-Server Socket DEMO

This Java Applet should put up two text fields, one input and one output. You type any string into the input field, the Java applet code should send the string to the server running on cs.millersv.edu (listening to some port number) and reverse the string for you. I know, not really a brilliant display of code, but it does show how to send stuff over the Internet using Client-Server Java code.

This code comes from David Flanaghan's Java in a Nutshell book and downloaded from O'Reilly to here....

Show Java Server code: Server.java
Other Java Demos @ MU: Other Java Demos @ MU
CS406 tear-off Window test.

Open should open the java window
Close should close (shut down) the java window
The Options should tear off (click on the dotted lines)and do the open and close
This won't do jack, without a Java enabled browser...
This also won't do jack if the Java server is not running on cs.millersv.edu.
To run the Java Server, first, make sure it is not running by doing a ps -ef | grep Server. If nothing shows up, then type:
%java $JAVAHOME/java/mucs.dir/demos/examples/section7/Server&
which should start up the server....
OR just click on the START SERVER anchor below...
Now we can write Internet games and other Java apps that send info back and forth.

Server isn't running so: START SERVER

Back To CS Main Page