This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
In chapter 15 of Head First Java I want to try out the SimpleChatClient and VerySimpleChatServer programs but I only have one computer. Is there a way I can set up a situation that passes as a server and a terminal on my desktop computer so I can run those programs in chapter 15? - Thanks
If you notice in all their client/server examples the remote IP address is 127.0.0.1 which is yout local loopback (aka localhost) ip address. So what your really are doing is an interprocess call.
Be aware that the example in chap18 ServiceServer does not work if you seperate out the class's into seperate directories. It only works if the service class's are in the same directory as the client. The code does not send the service's to the client as indicated in the sample text. I emailed Bert Bates about it, hopefully it will make the errata for the book.
An insane man is perfectly sane in his own mind - cira 1984 a very young chemically altered S.Gibson<br /> <br />Yes we do build our software idiot proof, problem is they keep building better idiots. - (used by S.Gibson to break the tension during a confernece call with the CIO)
Joined: Dec 17, 2005
Chapter 18? ServiceServer? In the Head First Java book the Chat Client I am talking about is in Chapter 15 (at least in my version) and consists of VerySimpleChatServer and SimpleChatClient. Anyway when I run the server in one command prompt window and the client in another window and type in text in the client and send it I get the following errors: