I’m Running a client/server chat messaging deal.
The client program gives me the error message “Host unknown: VCLXXXLR”
On the local network the computer I want to talk to is named “VCLXXXR” but it also has an IP address. However, when I used the IP address it didn’t work either.
The whole system is a simple client-server app ( http://pirate.shu.edu/~wachsmut/Teaching/CSAS2214/Virtual/Lectures/chat-client-server.html ). I appreciate any tips or advice.
The linked code looks ok and the error is very specific. Things you can try:
Verify your code is identical to the listing. Pay special attention to the clients hostname command line argument:
If you accidentally did:
That would throw the UknownHostException error that triggers your error message. You can also verify this by changing the following message:
to
Then you will know for sure that you are trying to connect to what you think you are.
Failing that, verify that you can ping the hostname or IP address from the command line.