I think you need connect() in both places.