Fix bug preventing setting bind IP with --port

The code was previously trying to set HOST to an IP
extracted from the --port argument, but was ineffectual
because the HOST global was not updated.