made io.connect dynamic based on host