connect_to_local(): use default testnet port, when the config file has testnet=x