Takes in parameters for hostname, port number, (not yet file name)