Read host and port from command-line arguments
Set input and output to binary mode