port check before creating camera