Splitting off bind_port() call into bind_port_helper(), with