Take server hostname and port as user input from client