I have a programming project to write a pretty basic java server and client to just read and write to each other and was just looking at the tutorial online from java located here:
It's pretty self explanatory and i think i get everything.. but I do have a question about the host name though which i'll quote from the site here:
"When you start the client program, the server should already be running and listening to the port, waiting for a client to request a connection. So, the first thing the client program does is to open a socket that is connected to the server running on the hostname and port specified:
kkSocket = new Socket("taranis", 4444);
out = new PrintWriter(kkSocket.getOu
in = new BufferedReader(new InputStreamReader(
When creating its socket, KnockKnockClient uses the host name taranis, the name of a hypothetical machine on our network. When you type in and run this program, change the host name to the name of a machine on your network. This is the machine on which you will run the KnockKnockServer. "
How am I supposed to find the "name of a machine on my network"???
some info: I'm doing everything through my universities network (i connect through PuTTy) which I believe uses Linux.. (i can find out for sure if it's important).. and i'm using my home PC which is running windows XP (not sure if that's relevant at all)