check and wait for port to be open