Minor changes

It now prints both hostname and IP of the server. It also waits for user
to press ENTER in order to close the program.