I'm a real greenhorn trying to run the DailyAdviceServer with DailyAdviceClient in two separate command windows on my computer. I started the server just fine in one cmd window and tried to run the client in another but got:
C:\sue\java_work\networking_and_threads>
java DailyAdviceClient
java.net.UnknownHostException: 127,0,0,1
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at DailyAdviceClient.go(DailyAdviceClient.java:9)
at DailyAdviceClient.main(DailyAdviceClient.java:25)
Here's all the code (from Head First Java, 2nd Edition):
Thanks in advance for your help!
Sue