Move payload outside the loop, change default connect back to 0.0.0.0